You are here

block_content.routing.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/block_content/block_content.routing.yml
core/modules/block_content/block_content.routing.yml

File

core/modules/block_content/block_content.routing.yml
View source
  1. entity.block_content_type.collection:
  2. path: '/admin/structure/block/block-content/types'
  3. defaults:
  4. _entity_list: 'block_content_type'
  5. _title: 'Custom block library'
  6. requirements:
  7. _permission: 'administer blocks'
  8. block_content.add_page:
  9. path: '/block/add'
  10. defaults:
  11. _controller: '\Drupal\block_content\Controller\BlockContentController::add'
  12. _title: 'Add custom block'
  13. options:
  14. _admin_route: TRUE
  15. requirements:
  16. _permission: 'administer blocks'
  17. block_content.add_form:
  18. path: '/block/add/{block_content_type}'
  19. defaults:
  20. _controller: '\Drupal\block_content\Controller\BlockContentController::addForm'
  21. _title_callback: 'Drupal\block_content\Controller\BlockContentController::getAddFormTitle'
  22. options:
  23. _admin_route: TRUE
  24. requirements:
  25. _permission: 'administer blocks'
  26. entity.block_content_type.delete_form:
  27. path: '/admin/structure/block/block-content/manage/{block_content_type}/delete'
  28. defaults:
  29. _entity_form: 'block_content_type.delete'
  30. _title: 'Delete'
  31. requirements:
  32. _entity_access: 'block_content_type.delete'
  33. options:
  34. _admin_route: TRUE
  35. entity.block_content.canonical:
  36. path: '/block/{block_content}'
  37. defaults:
  38. _entity_form: 'block_content.edit'
  39. options:
  40. _admin_route: TRUE
  41. requirements:
  42. _entity_access: 'block_content.update'
  43. block_content: \d+
  44. entity.block_content.edit_form:
  45. path: '/block/{block_content}'
  46. defaults:
  47. _entity_form: 'block_content.edit'
  48. options:
  49. _admin_route: TRUE
  50. requirements:
  51. _entity_access: 'block_content.update'
  52. block_content: \d+
  53. entity.block_content.delete_form:
  54. path: '/block/{block_content}/delete'
  55. defaults:
  56. _entity_form: 'block_content.delete'
  57. _title: 'Delete'
  58. options:
  59. _admin_route: TRUE
  60. requirements:
  61. _entity_access: 'block_content.delete'
  62. block_content: \d+
  63. block_content.type_add:
  64. path: '/admin/structure/block/block-content/types/add'
  65. defaults:
  66. _entity_form: 'block_content_type.add'
  67. _title: 'Add'
  68. requirements:
  69. _permission: 'administer blocks'
  70. entity.block_content_type.edit_form:
  71. path: '/admin/structure/block/block-content/manage/{block_content_type}'
  72. defaults:
  73. _entity_form: 'block_content_type.edit'
  74. requirements:
  75. _entity_access: 'block_content_type.update'
  76. entity.block_content.collection:
  77. path: '/admin/structure/block/block-content'
  78. defaults:
  79. _title: 'Custom block library'
  80. _entity_list: 'block_content'
  81. requirements:
  82. _permission: 'administer blocks'