Mercurial > hg > isophonics-drupal-site
view core/modules/block_content/src/BlockContentTranslationHandler.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\block_content; use Drupal\block_content\Entity\BlockContentType; use Drupal\Core\Entity\EntityInterface; use Drupal\content_translation\ContentTranslationHandler; /** * Defines the translation handler for custom blocks. */ class BlockContentTranslationHandler extends ContentTranslationHandler { /** * {@inheritdoc} */ protected function entityFormTitle(EntityInterface $entity) { $block_type = BlockContentType::load($entity->bundle()); return t('<em>Edit @type</em> @title', ['@type' => $block_type->label(), '@title' => $entity->label()]); } }