You are here

protected function CommentTranslationHandler::entityFormTitle in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::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.

Overrides ContentTranslationHandler::entityFormTitle

File

core/modules/comment/src/CommentTranslationHandler.php, line 37
Contains \Drupal\comment\CommentTranslationHandler.

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