protected ContentTranslationHandler::entityFormTitle(EntityInterface $entity)
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.
File
- core/modules/content_translation/src/ContentTranslationHandler.php, line 703
Class
- ContentTranslationHandler
- Base class for content translation handlers.
Namespace
Drupal\content_translation
Code
protected function entityFormTitle(EntityInterface $entity) { return $entity->label(); }
Please login to continue.