function ContentTranslationHandler::entityFormTitle
Same name in other branches
- 8.9.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::entityFormTitle()
- 10 core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::entityFormTitle()
- 11.x core/modules/content_translation/src/ContentTranslationHandler.php \Drupal\content_translation\ContentTranslationHandler::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.
Return value
string|null The label of the entity, or NULL if there is no label defined.
1 call to ContentTranslationHandler::entityFormTitle()
- ContentTranslationHandler::entityFormAlter in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - Performs the needed alterations to the entity form.
3 methods override ContentTranslationHandler::entityFormTitle()
- BlockContentTranslationHandler::entityFormTitle in core/
modules/ block_content/ src/ BlockContentTranslationHandler.php - Returns the title to be used for the entity form page.
- CommentTranslationHandler::entityFormTitle in core/
modules/ comment/ src/ CommentTranslationHandler.php - Returns the title to be used for the entity form page.
- NodeTranslationHandler::entityFormTitle in core/
modules/ node/ src/ NodeTranslationHandler.php - Returns the title to be used for the entity form page.
File
-
core/
modules/ content_translation/ src/ ContentTranslationHandler.php, line 803
Class
- ContentTranslationHandler
- Base class for content translation handlers.
Namespace
Drupal\content_translationCode
protected function entityFormTitle(EntityInterface $entity) {
return $entity->label();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.