Same filename and directory in other branches
- 8.9.x core/modules/block_content/src/BlockContentTranslationHandler.php
- 9 core/modules/block_content/src/BlockContentTranslationHandler.php
Namespace
Drupal\block_content
File
core/modules/block_content/src/BlockContentTranslationHandler.php
View source
<?php
namespace Drupal\block_content;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Core\Entity\EntityInterface;
use Drupal\content_translation\ContentTranslationHandler;
class BlockContentTranslationHandler extends ContentTranslationHandler {
protected function entityFormTitle(EntityInterface $entity) {
$block_type = BlockContentType::load($entity
->bundle());
return $this
->t('<em>Edit @type</em> @title', [
'@type' => $block_type
->label(),
'@title' => $entity
->label(),
]);
}
}
Classes