You are here

protected function BlockPermissionsBlockLibraryControllerTest::getBlockAdminLibraryThemeUrl in Block permissions 8

Gets the URL of the block library page.

Parameters

string $theme: Theme name.

Return value

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

1 call to BlockPermissionsBlockLibraryControllerTest::getBlockAdminLibraryThemeUrl()
BlockPermissionsBlockLibraryControllerTest::testListBlocks in tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php
Tests blocks visibility on the "/admin/structure/block/library/{theme}".

File

tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php, line 94

Class

BlockPermissionsBlockLibraryControllerTest
Tests Block permissions block library controller.

Namespace

Drupal\Tests\block_permissions\Functional

Code

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