By gábor hojtsy on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0
Issue links:
Description:
In Drupal 7 and before, titles of nodes, taxonomy terms, etc. were differently represented in templates. With Drupal 8, we unified their naming as $label:
Drupal 7 nodes:
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>" rel="bookmark"><?php print $title; ?></a></h2>
<?php endif; ?>
Drupal 8 nodes:
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>" rel="bookmark"><?php print $label; ?></a></h2>
<?php endif; ?>
Drupal 7 taxonomy terms:
<?php if (!$page): ?>
<h2><a href="<?php print $term_url; ?>"><?php print $term_name; ?></a></h2>
<?php endif; ?>
Drupal 8 taxonomy terms:
<?php if (!$page): ?>
<h2><a href="<?php print $url; ?>"><?php print $label; ?></a></h2>
<?php endif; ?>
Impacts:
Themers