You are here

protected function BlockListsRoutesAccessTest::getBlockAdminDisplayThemeUrl in Block permissions 8

Gets the URL of the block list page.

Parameters

string $theme: Theme name.

Return value

\Drupal\Core\Url A new Url object for a routed URL.

1 call to BlockListsRoutesAccessTest::getBlockAdminDisplayThemeUrl()
BlockListsRoutesAccessTest::testBlockThemeListAccess in tests/src/Functional/BlockListsRoutesAccessTest.php
Test the access to the "/admin/structure/block/list/{theme}" page.

File

tests/src/Functional/BlockListsRoutesAccessTest.php, line 99

Class

BlockListsRoutesAccessTest
Tests Block permissions access control handler for block list pages.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function getBlockAdminDisplayThemeUrl($theme) {
  return Url::fromRoute('block.admin_display_theme', [
    'theme' => $theme,
  ]);
}