function NodeTranslationHandler::entityFormTitle
Same name in other branches
- 8.9.x core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()
- 10 core/modules/node/src/NodeTranslationHandler.php \Drupal\node\NodeTranslationHandler::entityFormTitle()
- 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\nodeCode
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.