protected function CustomBlockTranslationController::entityFormTitle

Overrides EntityTranslationController::entityFormTitle().

Overrides EntityTranslationController::entityFormTitle

File

drupal/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTranslationController.php, line 45
Contains \Drupal\custom_block\CustomBlockTranslationController.

Class

CustomBlockTranslationController
Defines the translation controller class for custom blocks.

Namespace

Drupal\custom_block

Code

protected function entityFormTitle(EntityInterface $entity) {
  $block_type = entity_load('custom_block_type', $entity->type->value);
  return t('<em>Edit @type</em> @title', array(
    '@type' => $block_type
      ->label(),
    '@title' => $entity
      ->label(),
  ));
}