You are here

protected function NodeTranslationHandler::entityFormTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()

Returns the title to be used for the entity form page.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being altered.

Overrides ContentTranslationHandler::entityFormTitle

File

core/modules/node/src/NodeTranslationHandler.php, line 69
Contains \Drupal\node\NodeTranslationHandler.

Class

NodeTranslationHandler
Defines the translation handler 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(),
  ));
}