protected function BlockFormRoutesAccessTest::getBlockDeleteFormUrl in Block permissions 8
Gets the path to the block delete form.
Parameters
string $id: Block id.
Return value
\Drupal\Core\Url A new Url object for a routed URL.
1 call to BlockFormRoutesAccessTest::getBlockDeleteFormUrl()
- BlockFormRoutesAccessTest::testBlockDeleteFormAccess in tests/
src/ Functional/ BlockFormRoutesAccessTest.php - Tests the access to the block delete page.
File
- tests/
src/ Functional/ BlockFormRoutesAccessTest.php, line 190
Class
- BlockFormRoutesAccessTest
- Tests Block permissions access control handler for block configuration pages.
Namespace
Drupal\Tests\block_permissions\FunctionalCode
protected function getBlockDeleteFormUrl($id) {
return Url::fromRoute('entity.block.delete_form', [
'block' => $id,
]);
}