protected function ContentTranslationHandler::entityFormTitle in Drupal 8
Same name and namespace in other branches
- 9 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 796
Class
- ContentTranslationHandler
- Base class for content translation handlers.
Namespace
Drupal\content_translationCode
protected function entityFormTitle(EntityInterface $entity) {
return $entity
->label();
}