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

Breadcrumb

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

function NodeTranslationHandler::entityFormTitle

Overrides ContentTranslationHandler::entityFormTitle

File

core/modules/node/src/NodeTranslationHandler.php, line 52

Class

NodeTranslationHandler
Defines the translation handler for nodes.

Namespace

Drupal\node

Code

protected function entityFormTitle(EntityInterface $entity) {
    $type_name = node_get_type_label($entity);
    return t('<em>Edit @type</em> @title', [
        '@type' => $type_name,
        '@title' => $entity->label(),
    ]);
}

API Navigation

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