e 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;