Commit 559ab50c authored by webchick's avatar webchick
Browse files

Issue #2102445 follow-up by webwarrior: Remove yet another drupal_set_title in...

Issue #2102445 follow-up by webwarrior: Remove yet another drupal_set_title in content_translation module.
parent 5e245108
......@@ -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.
......
......@@ -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,
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment