diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 32d3295..ff3c8a4 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -647,7 +647,7 @@ function template_preprocess_node(&$variables) { $variables['url'] = $node->url('canonical', array( 'language' => $node->language(), )); - $variables['label'] = $variables['elements']['title']; + $variables['title'] = $variables['elements']['title']; unset($variables['elements']['title']); $variables['page'] = $variables['view_mode'] == 'full' && node_is_page($node); diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index c80eecb..05aa43a 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -15,7 +15,11 @@ * - sticky: Whether the node is 'sticky'. Sticky nodes are ordered above * other non-sticky nodes in teaser listings * - published: Whether the node is published. - * - label: The title of the node. + * - title: The title of the node. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. * - content: All node items. Use {{ content }} to print them all, * or print a subset such as {{ content.field_example }}. Use * {{ content|without('field_example') %} to temporarily suppress the printing @@ -46,10 +50,6 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. * - view_mode: View mode; for example, "teaser" or "full". * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. * - page: Flag for the full page state. Will be true if view_mode is 'full'. @@ -82,7 +82,7 @@ {{ title_prefix }} {% if not page %} - {{ label }} + {{ title }} {% endif %} {{ title_suffix }} diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index d45b0f0..4385250 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -15,7 +15,11 @@ * - sticky: Whether the node is 'sticky'. Sticky nodes are ordered above * other non-sticky nodes in teaser listings * - published: Whether the node is published. - * - label: The title of the node. + * - title: The title of the node. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. * - content: All node items. Use {{ content }} to print them all, * or print a subset such as {{ content.field_example }}. Use * {{ content|without('field_example') }} to exclude the printing of a @@ -46,10 +50,6 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. * - view_mode: View mode; for example, "teaser" or "full". * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. * - page: Flag for the full page state. Will be true if view_mode is 'full'. @@ -77,7 +77,7 @@ {{ title_prefix }} {% if not page %}

- {{ label }} + {{ title }}

{% endif %} {{ title_suffix }}