protected function BlockContentTranslationHandler::entityFormTitle in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/block_content/src/BlockContentTranslationHandler.php \Drupal\block_content\BlockContentTranslationHandler::entityFormTitle()
Returns the title to be used for the entity form page.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity whose form is being altered.
Overrides ContentTranslationHandler::entityFormTitle
File
- core/
modules/ block_content/ src/ BlockContentTranslationHandler.php, line 40 - Contains \Drupal\block_content\BlockContentTranslationHandler.
Class
- BlockContentTranslationHandler
- Defines the translation handler for custom blocks.
Namespace
Drupal\block_contentCode
protected function entityFormTitle(EntityInterface $entity) {
$block_type = BlockContentType::load($entity
->bundle());
return t('<em>Edit @type</em> @title', array(
'@type' => $block_type
->label(),
'@title' => $entity
->label(),
));
}