From 2fd888c406206dac5113b03621823b8244f89dc9 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Fri, 14 Feb 2014 12:39:58 +0000 Subject: [PATCH] Issue #2193477 by larowlan: No page title on admin/structure/block/list/{theme}. --- core/modules/block/block.routing.yml | 1 + core/modules/block/lib/Drupal/block/Tests/BlockTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/modules/block/block.routing.yml b/core/modules/block/block.routing.yml index e7bbf2216f03..f4729cfb3732 100644 --- a/core/modules/block/block.routing.yml +++ b/core/modules/block/block.routing.yml @@ -33,6 +33,7 @@ block.admin_display_theme: path: 'admin/structure/block/list/{theme}' defaults: _content: '\Drupal\block\Controller\BlockListController::listing' + _title: 'Block layout' requirements: _access_theme: 'TRUE' _permission: 'administer blocks' diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php index 8e045cf28a30..e7b99e181ba3 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php @@ -161,6 +161,8 @@ public function testBlockThemeSelector() { theme_enable(array('bartik', 'seven')); $theme_settings = $this->container->get('config.factory')->get('system.theme'); foreach (array('bartik', 'stark', 'seven') as $theme) { + $this->drupalGet('admin/structure/block/list/' . $theme); + $this->assertTitle(t('Block layout') . ' | Drupal'); // Select the 'Powered by Drupal' block to be placed. $block = array(); $block['id'] = strtolower($this->randomName()); -- GitLab