diff --git a/core/lib/Drupal/Core/Entity/EntityListController.php b/core/lib/Drupal/Core/Entity/EntityListController.php index 71c9c24..67d2436 100644 --- a/core/lib/Drupal/Core/Entity/EntityListController.php +++ b/core/lib/Drupal/Core/Entity/EntityListController.php @@ -251,7 +251,7 @@ public function setTranslationManager(TranslationInterface $translation_manager) } /** - * Returns the title of the form. + * Returns the title of the page. * * @return string * A string title of the page. diff --git a/core/modules/block/custom_block/custom_block.routing.yml b/core/modules/block/custom_block/custom_block.routing.yml index ca9586a..beb72b1 100644 --- a/core/modules/block/custom_block/custom_block.routing.yml +++ b/core/modules/block/custom_block/custom_block.routing.yml @@ -9,6 +9,7 @@ custom_block.add_page: path: '/block/add' defaults: _content: 'Drupal\custom_block\Controller\CustomBlockController::add' + _title: 'Add custom block' requirements: _permission: 'administer blocks' @@ -16,6 +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::getFormTitle' requirements: _permission: 'administer blocks' diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php index ea57b63..070171d 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php @@ -50,13 +50,6 @@ public function buildRow(EntityInterface $entity) { /** * {@inheritdoc} */ - public function render() { - return parent::render(); - } - - /** - * {@inheritdoc} - */ protected function getTitle() { return $this->t('Custom block types'); }