You are here

protected function NodeTranslationHandler::entityFormTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()
  2. 9 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::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(),
  ]);
}