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