function NodeTranslationHandler::entityFormTitle

Same name and namespace in other branches
  1. 9 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()
  2. 10 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()
  3. 11.x core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()

Overrides ContentTranslationHandler::entityFormTitle

File

core/modules/node/src/NodeTranslationHandler.php, line 52

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', [
        '@type' => $type_name,
        '@title' => $entity->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.