protected CommentTranslationHandler::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.
Overrides ContentTranslationHandler::entityFormTitle
File
- core/modules/comment/src/CommentTranslationHandler.php, line 32
Class
- CommentTranslationHandler
- Defines the translation handler for comments.
Namespace
Drupal\comment
Code
protected function entityFormTitle(EntityInterface $entity) { return t('Edit comment @subject', array('@subject' => $entity->label())); }
Please login to continue.