Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommentTranslationHandler.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal