protected function NodeTranslationController::entityFormTitle

Overrides EntityTranslationController::entityFormTitle().

Overrides EntityTranslationController::entityFormTitle

File

drupal/core/modules/node/lib/Drupal/node/NodeTranslationController.php, line 52
Definition of Drupal\node\NodeTranslationController.

Class

NodeTranslationController
Defines the translation controller class for nodes.

Namespace

Drupal\node

Code

protected function entityFormTitle(EntityInterface $entity) {
  $type_name = node_get_type_label($entity);
  return t('<em>Edit @type</em> @title', array(
    '@type' => $type_name,
    '@title' => $entity
      ->label(),
  ));
}