3 namespace Drupal\block_content;
5 use Drupal\block_content\Entity\BlockContentType;
6 use Drupal\Core\Entity\EntityInterface;
7 use Drupal\content_translation\ContentTranslationHandler;
10 * Defines the translation handler for custom blocks.
12 class BlockContentTranslationHandler extends ContentTranslationHandler {
17 protected function entityFormTitle(EntityInterface $entity) {
18 $block_type = BlockContentType::load($entity->bundle());
19 return t('<em>Edit @type</em> @title', ['@type' => $block_type->label(), '@title' => $entity->label()]);