class BlockContentTranslationHandler
Same name and namespace in other branches
- 11.x core/modules/block_content/src/BlockContentTranslationHandler.php \Drupal\block_content\BlockContentTranslationHandler
- 10 core/modules/block_content/src/BlockContentTranslationHandler.php \Drupal\block_content\BlockContentTranslationHandler
- 8.9.x core/modules/block_content/src/BlockContentTranslationHandler.php \Drupal\block_content\BlockContentTranslationHandler
Defines the translation handler for custom blocks.
Hierarchy
- class \Drupal\content_translation\ContentTranslationHandler implements \Drupal\content_translation\ContentTranslationHandlerInterface, \Drupal\Core\Entity\EntityHandlerInterface uses \Drupal\Core\Entity\EntityChangesDetectionTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\block_content\BlockContentTranslationHandler extends \Drupal\content_translation\ContentTranslationHandler
Expanded class hierarchy of BlockContentTranslationHandler
File
-
core/
modules/ block_content/ src/ BlockContentTranslationHandler.php, line 12
Namespace
Drupal\block_contentView source
class BlockContentTranslationHandler extends ContentTranslationHandler {
/**
* {@inheritdoc}
*/
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(),
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.