diff --git a/core/modules/content_translation/content_translation.pages.inc b/core/modules/content_translation/content_translation.pages.inc index 2e5fa6b..da64ed2 100644 --- a/core/modules/content_translation/content_translation.pages.inc +++ b/core/modules/content_translation/content_translation.pages.inc @@ -134,7 +134,7 @@ function content_translation_overview(EntityInterface $entity) { } } - drupal_set_title(t('Translations of %label', array('%label' => $entity->label())), PASS_THROUGH); + $build['#title'] = t('Translations of %label', array('%label' => $entity->label())); // Add metadata to the build render array to let other modules know about // which entity this is. diff --git a/core/modules/content_translation/lib/Drupal/content_translation/Routing/ContentTranslationRouteSubscriber.php b/core/modules/content_translation/lib/Drupal/content_translation/Routing/ContentTranslationRouteSubscriber.php index 2390090..f649e63 100644 --- a/core/modules/content_translation/lib/Drupal/content_translation/Routing/ContentTranslationRouteSubscriber.php +++ b/core/modules/content_translation/lib/Drupal/content_translation/Routing/ContentTranslationRouteSubscriber.php @@ -50,7 +50,6 @@ protected function alterRoutes(RouteCollection $collection, $provider) { $path, array( '_content' => '\Drupal\content_translation\Controller\ContentTranslationController::overview', - '_title' => 'Translate', 'account' => 'NULL', '_entity_type' => $entity_type, ),