diff --git a/core/modules/block/custom_block/custom_block.routing.yml b/core/modules/block/custom_block/custom_block.routing.yml index e1a4964..bd2fc96 100644 --- a/core/modules/block/custom_block/custom_block.routing.yml +++ b/core/modules/block/custom_block/custom_block.routing.yml @@ -17,7 +17,7 @@ custom_block.add_form: path: block/add/{custom_block_type} defaults: _content: 'Drupal\custom_block\Controller\CustomBlockController::addForm' - _title_callback: 'Drupal\custom_block\Controller\CustomBlockController::geFormTitle' + _title_callback: 'Drupal\custom_block\Controller\CustomBlockController::getFormTitle' requirements: _permission: 'administer blocks' diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php index bd32040..81a66e9 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php @@ -120,7 +120,7 @@ public function addForm(CustomBlockTypeInterface $custom_block_type, Request $re * @return string * The page title. */ - public function geFormTitle(CustomBlockTypeInterface $custom_block_type) { + public function getFormTitle(CustomBlockTypeInterface $custom_block_type) { return $this->t('Add %type custom block', array('%type' => $custom_block_type->label())); }