block_content.routing.yml

Same filename in other branches
  1. 9 core/modules/block_content/block_content.routing.yml
  2. 8.9.x core/modules/block_content/block_content.routing.yml
  3. 10 core/modules/block_content/block_content.routing.yml
core/modules/block_content/block_content.routing.yml
9 string references to YAML keys in block_content.routing.yml
BlockContentAddLocalAction::getOptions in core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php
BlockContentBlock::build in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
BlockContentLocalTasksTest::getBlockContentListingRoutes in core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php
Provides a list of routes to test.
BlockContentLocalTasksTest::testBlockContentListLocalTasks in core/modules/block_content/tests/src/Unit/Menu/BlockContentLocalTasksTest.php
Checks block_content listing local tasks.
BlockContentTypeTest::testBlockContentTypeEditing in core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php
Tests editing a block type using the UI.

... See full list

File

core/modules/block_content/block_content.routing.yml

View source
  1. block_content.add_page:
  2. path: '/block/add'
  3. defaults:
  4. _controller: '\Drupal\block_content\Controller\BlockContentController::add'
  5. _title: 'Add content block'
  6. options:
  7. _admin_route: TRUE
  8. requirements:
  9. _entity_create_any_access: 'block_content'
  10. block_content.add_form:
  11. path: '/block/add/{block_content_type}'
  12. defaults:
  13. _controller: '\Drupal\block_content\Controller\BlockContentController::addForm'
  14. _title_callback: '\Drupal\block_content\Controller\BlockContentController::getAddFormTitle'
  15. options:
  16. _admin_route: TRUE
  17. requirements:
  18. _entity_create_access: 'block_content:{block_content_type}'
  19. entity.block_content.canonical:
  20. path: '/admin/content/block/{block_content}'
  21. defaults:
  22. _entity_form: 'block_content.edit'
  23. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  24. options:
  25. _admin_route: TRUE
  26. requirements:
  27. _entity_access: 'block_content.update'
  28. block_content: \d+
  29. entity.block_content.edit_form:
  30. path: '/admin/content/block/{block_content}'
  31. defaults:
  32. _entity_form: 'block_content.edit'
  33. options:
  34. _admin_route: TRUE
  35. requirements:
  36. _entity_access: 'block_content.update'
  37. block_content: \d+
  38. entity.block_content.delete_form:
  39. path: '/admin/content/block/{block_content}/delete'
  40. defaults:
  41. _entity_form: 'block_content.delete'
  42. _title: 'Delete'
  43. options:
  44. _admin_route: TRUE
  45. requirements:
  46. _entity_access: 'block_content.delete'
  47. block_content: \d+
  48. block_content.type_add:
  49. path: '/admin/structure/block-content/add'
  50. defaults:
  51. _entity_form: 'block_content_type.add'
  52. _title: 'Add'
  53. requirements:
  54. _entity_create_access: 'block_content_type'
  55. entity.block_content.collection:
  56. path: '/admin/content/block'
  57. defaults:
  58. _title: 'Content blocks'
  59. _entity_list: 'block_content'
  60. requirements:
  61. _permission: 'access block library+administer block content'

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