protected function EntityTranslationController::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.

1 call to EntityTranslationController::entityFormTitle()
EntityTranslationController::entityFormAlter in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::entityFormAlter().
2 methods override EntityTranslationController::entityFormTitle()
CommentTranslationController::entityFormTitle in drupal/core/modules/comment/lib/Drupal/comment/CommentTranslationController.php
Overrides EntityTranslationController::entityFormTitle().
NodeTranslationController::entityFormTitle in drupal/core/modules/node/lib/Drupal/node/NodeTranslationController.php
Overrides EntityTranslationController::entityFormTitle().

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();
}