block_content.routing.yml

core/modules/block_content/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
  1. block_content.add_form:
  2. path: '/block/add/{block_content_type}'
  3. defaults:
  4. _controller: '\Drupal\block_content\Controller\BlockContentController::addForm'
  5. _title_callback: '\Drupal\block_content\Controller\BlockContentController::getAddFormTitle'
  6. options:
  7. _admin_route: TRUE
  8. requirements:
  9. _entity_create_access: 'block_content:{block_content_type}'
  10. # @todo remove these aliases as well as overrides in BlockContentRouteProvider and BlockContentTypeRouteProvider when
  11. # https://www.drupal.org/project/drupal/issues/3506653 is done.
  12. # @see https://www.drupal.org/project/drupal/issues/3534380
  13. entity.block_content_type.add_form:
  14. alias: block_content.type_add
  15. entity.block_content.add_page:
  16. alias: block_content.add_page

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.