block.routing.yml
Same filename in other branches
24 string references to YAML keys in block.routing.yml
- AdminDemoNegotiator::applies in core/
modules/ block/ src/ Theme/ AdminDemoNegotiator.php - Whether this theme negotiator should be used to set the theme.
- Block::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ display/ Block.php - Provide the default form for setting options.
- BlockContentForm::save in core/
modules/ block_content/ src/ BlockContentForm.php - Form submission handler for the 'save' action.
- BlockContentLocalTasksTest::testBlockContentListLocalTasks in core/
modules/ block_content/ tests/ src/ Unit/ Menu/ BlockContentLocalTasksTest.php - Checks block_content listing local tasks.
- BlockContentTypeTest::testsBlockContentAddTypes in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTypeTest.php - Tests that redirects work as expected when multiple block types exist.
File
-
core/
modules/ block/ block.routing.yml
View source
- block.admin_demo:
- path: '/admin/structure/block/demo/{theme}'
- defaults:
- _controller: '\Drupal\block\Controller\BlockController::demo'
- _title_callback: 'theme_handler:getName'
- requirements:
- _access_theme: 'TRUE'
- _permission: 'administer blocks'
- options:
- _admin_route: FALSE
-
- entity.block.delete_form:
- path: '/admin/structure/block/manage/{block}/delete'
- defaults:
- _entity_form: 'block.delete'
- _title: 'Remove block'
- requirements:
- _permission: 'administer blocks'
-
- entity.block.edit_form:
- path: '/admin/structure/block/manage/{block}'
- defaults:
- _entity_form: 'block.default'
- _title: 'Configure block'
- requirements:
- _entity_access: 'block.update'
-
- entity.block.enable:
- path: '/admin/structure/block/manage/{block}/enable'
- defaults:
- _controller: '\Drupal\block\Controller\BlockController::performOperation'
- op: enable
- requirements:
- _entity_access: 'block.enable'
- _csrf_token: 'TRUE'
-
- entity.block.disable:
- path: '/admin/structure/block/manage/{block}/disable'
- defaults:
- _controller: '\Drupal\block\Controller\BlockController::performOperation'
- op: disable
- requirements:
- _entity_access: 'block.disable'
- _csrf_token: 'TRUE'
-
- block.admin_display:
- path: '/admin/structure/block'
- defaults:
- _controller: '\Drupal\block\Controller\BlockListController::listing'
- _title: 'Block layout'
- requirements:
- _permission: 'administer blocks'
-
- block.admin_display_theme:
- path: '/admin/structure/block/list/{theme}'
- defaults:
- _controller: '\Drupal\block\Controller\BlockListController::listing'
- _title: 'Block layout'
- requirements:
- _access_theme: 'TRUE'
- _permission: 'administer blocks'
-
- block.admin_library:
- path: '/admin/structure/block/library/{theme}'
- defaults:
- _controller: '\Drupal\block\Controller\BlockLibraryController::listBlocks'
- _title: 'Place block'
- requirements:
- _access_theme: 'TRUE'
- _permission: 'administer blocks'
-
- block.admin_add:
- path: '/admin/structure/block/add/{plugin_id}/{theme}'
- defaults:
- _controller: '\Drupal\block\Controller\BlockAddController::blockAddConfigureForm'
- theme: null
- _title: 'Configure block'
- requirements:
- _permission: 'administer blocks'
-
- block.category_autocomplete:
- path: '/block-category/autocomplete'
- defaults:
- _controller: '\Drupal\block\Controller\CategoryAutocompleteController::autocomplete'
- requirements:
- _permission: 'administer blocks'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.