function CommentTranslationHandler::entityFormTitle

Same name in other branches
  1. 9 core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::entityFormTitle()
  2. 10 core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::entityFormTitle()
  3. 11.x core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::entityFormTitle()

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', [
        '@subject' => $entity->label(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.