You are here

protected function BlockFormRoutesAccessTest::getBlockDeleteFormTitle in Block permissions 8

Gets the title of the block deletion page.

Parameters

string $name: Block name.

Return value

\Drupal\Component\Render\MarkupInterface Page title.

1 call to BlockFormRoutesAccessTest::getBlockDeleteFormTitle()
BlockFormRoutesAccessTest::testBlockDeleteFormAccess in tests/src/Functional/BlockFormRoutesAccessTest.php
Tests the access to the block delete page.

File

tests/src/Functional/BlockFormRoutesAccessTest.php, line 223

Class

BlockFormRoutesAccessTest
Tests Block permissions access control handler for block configuration pages.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function getBlockDeleteFormTitle($name) {
  return new FormattableMarkup('Are you sure you want to remove the block @name?', [
    '@name' => $name,
  ]);
}