You are here

protected function BlockFormRoutesAccessTest::getBlockEditFormUrl in Block permissions 8

Gets the path to the block edit form.

Parameters

string $id: Block id.

Return value

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

1 call to BlockFormRoutesAccessTest::getBlockEditFormUrl()
BlockFormRoutesAccessTest::testBlockEditFormAccess in tests/src/Functional/BlockFormRoutesAccessTest.php
Tests the access to the block edit page.

File

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

Class

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

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function getBlockEditFormUrl($id) {
  return Url::fromRoute('entity.block.edit_form', [
    'block' => $id,
  ]);
}