CommentTranslationHandler::entityFormTitle

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()));
}
doc_Drupal
2016-10-29 08:51:07
Comments
Leave a Comment

Please login to continue.