block_content.routing.yml
4 string references to YAML keys in block_content.routing.yml
- BlockContentRouteProvider::getRoutes in core/
modules/ block_content/ src/ Routing/ BlockContentRouteProvider.php - BlockContentTypeRouteProvider::getRoutes in core/
modules/ block_content/ src/ Routing/ BlockContentTypeRouteProvider.php - BlockContentTypeTest::testBlockContentTypeEditing in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTypeTest.php - Tests editing a block type using the UI.
- claro_preprocess_block_content_add_list in core/
themes/ claro/ claro.theme - Implements template_preprocess_HOOK() for block_content_add_list.
File
-
core/
modules/ block_content/ block_content.routing.yml
View source
- block_content.add_form:
- path: '/block/add/{block_content_type}'
- defaults:
- _controller: '\Drupal\block_content\Controller\BlockContentController::addForm'
- _title_callback: '\Drupal\block_content\Controller\BlockContentController::getAddFormTitle'
- options:
- _admin_route: TRUE
- requirements:
- _entity_create_access: 'block_content:{block_content_type}'
-
- # @todo remove these aliases as well as overrides in BlockContentRouteProvider and BlockContentTypeRouteProvider when
- # https://www.drupal.org/project/drupal/issues/3506653 is done.
- # @see https://www.drupal.org/project/drupal/issues/3534380
- entity.block_content_type.add_form:
- alias: block_content.type_add
- entity.block_content.add_page:
- alias: block_content.add_page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.