You are here

protected function CommentTranslationHandler::entityFormTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::entityFormTitle()
  2. 9 core/modules/comment/src/CommentTranslationHandler.php \Drupal\comment\CommentTranslationHandler::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(),
  ]);
}