diff --git a/core/modules/block_place/block_place.module b/core/modules/block_place/block_place.module index 63f9bae..533dd12 100644 --- a/core/modules/block_place/block_place.module +++ b/core/modules/block_place/block_place.module @@ -30,8 +30,8 @@ function block_place_toolbar() { $query = \Drupal::request()->query->all(); $wrapper_class = ''; $status_class = ''; + $title = t('Place block'); if (isset($query['block-place'])) { - $title = t('Place block'); $status_class = 'active'; $wrapper_class = 'is-active'; $description = t('Cancel placing a block on the page.'); @@ -39,7 +39,6 @@ function block_place_toolbar() { unset($query['destination']); } else { - $title = t('Place block'); $status_class = 'inactive'; $description = t('Place a block on the page.'); $query['block-place'] = '1'; diff --git a/core/modules/block_place/src/Tests/BlockPlaceTest.php b/core/modules/block_place/src/Tests/BlockPlaceTest.php index 7f626a8..b5e14cf 100644 --- a/core/modules/block_place/src/Tests/BlockPlaceTest.php +++ b/core/modules/block_place/src/Tests/BlockPlaceTest.php @@ -48,7 +48,6 @@ function testPlacingBlocks() { $demo_block = $this->xpath('//div[@class="block-region demo-block" and starts-with(text(), :name)]', [':name' => $name]); $this->assertEqual(1, count($demo_block), 'Found one matching DIV including the region name ' . $name); } - $this->assertLink('Cancel place block'); // Create a user who cannot administer blocks. $this->drupalLogin($this->drupalCreateUser([