reverted: --- b/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php +++ a/core/lib/Drupal/Core/Entity/Controller/EntityViewController.php @@ -70,31 +70,7 @@ if ($entity instanceof FieldableEntityInterface) { $label_field = $entity->getEntityType()->getKey('label'); if (isset($page[$label_field])) { + $page['#title'] = $this->renderer->render($page[$label_field]); - // The #page_title property allows the label field render array to - // specify how the page title should be rendered. It should be empty - // or a render array. This property is only required if the page - // title is different from the standard field output. - $showTitle = TRUE; - if (isset($page[$label_field]['#page_title'])) { - if (empty($page[$label_field]['#page_title'])) { - // The page title should be suppressed. - $showTitle = FALSE; - } - else { - // The label field formatter has provided an alternate render - // array for this circumstance. Fill out any missing properties in - // it by merging in the usual label render array. - $page[$label_field] = $page[$label_field]['#page_title'] + $page[$label_field]; - } - } - - // Render the page title if required. - if ($showTitle) { - $page['#title'] = $this->renderer->render($page[$label_field]); - } - else { - $page['#title'] = ''; - } } } return $page; diff -u b/core/modules/node/node.module b/core/modules/node/node.module --- b/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -627,6 +627,8 @@ $variables['label']['#inline_title'] = TRUE; } else { + // @todo Remove this else branch once there is a fix for + // https://www.drupal.org/project/drupal/issues/2941208 $variables['elements']['title']['#inline_title'] = FALSE; } @@ -677,6 +679,8 @@ // been taken out of the normal node to use for the page title. In this // case, the title must be inline as the page title template will wrap // it in a header. + // @todo Remove this else branch and the if test once there is a fix for + // https://www.drupal.org/project/drupal/issues/2941208 $variables['inline_title'] = TRUE; } }