Returns the title to be used for the entity form page.
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
The entity whose form is being altered.
File
- drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php, line 416
- Definition of Drupal\translation_entity\EntityTranslationController.
Class
- EntityTranslationController
- Base class for entity translation controllers.
Namespace
Drupal\translation_entity
Code
protected function entityFormTitle(EntityInterface $entity) {
return $entity
->label();
}