Drupal investigation

block.routing.yml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. block.admin_demo:
  2. path: '/admin/structure/block/demo/{theme}'
  3. defaults:
  4. _controller: '\Drupal\block\Controller\BlockController::demo'
  5. _title_callback: 'theme_handler:getName'
  6. requirements:
  7. _access_theme: 'TRUE'
  8. _permission: 'administer blocks'
  9. options:
  10. _admin_route: FALSE
  11. entity.block.delete_form:
  12. path: '/admin/structure/block/manage/{block}/delete'
  13. defaults:
  14. _entity_form: 'block.delete'
  15. _title: 'Delete block'
  16. requirements:
  17. _permission: 'administer blocks'
  18. entity.block.edit_form:
  19. path: '/admin/structure/block/manage/{block}'
  20. defaults:
  21. _entity_form: 'block.default'
  22. _title: 'Configure block'
  23. requirements:
  24. _entity_access: 'block.update'
  25. entity.block.enable:
  26. path: '/admin/structure/block/manage/{block}/enable'
  27. defaults:
  28. _controller: '\Drupal\block\Controller\BlockController::performOperation'
  29. op: enable
  30. requirements:
  31. _entity_access: 'block.enable'
  32. _csrf_token: 'TRUE'
  33. entity.block.disable:
  34. path: '/admin/structure/block/manage/{block}/disable'
  35. defaults:
  36. _controller: '\Drupal\block\Controller\BlockController::performOperation'
  37. op: disable
  38. requirements:
  39. _entity_access: 'block.disable'
  40. _csrf_token: 'TRUE'
  41. block.admin_display:
  42. path: '/admin/structure/block'
  43. defaults:
  44. _controller: '\Drupal\block\Controller\BlockListController::listing'
  45. _title: 'Block layout'
  46. requirements:
  47. _permission: 'administer blocks'
  48. block.admin_display_theme:
  49. path: 'admin/structure/block/list/{theme}'
  50. defaults:
  51. _controller: '\Drupal\block\Controller\BlockListController::listing'
  52. _title: 'Block layout'
  53. requirements:
  54. _access_theme: 'TRUE'
  55. _permission: 'administer blocks'
  56. block.admin_library:
  57. path: 'admin/structure/block/library/{theme}'
  58. defaults:
  59. _controller: '\Drupal\block\Controller\BlockLibraryController::listBlocks'
  60. _title: 'Place block'
  61. requirements:
  62. _access_theme: 'TRUE'
  63. _permission: 'administer blocks'
  64. block.admin_add:
  65. path: '/admin/structure/block/add/{plugin_id}/{theme}'
  66. defaults:
  67. _controller: '\Drupal\block\Controller\BlockAddController::blockAddConfigureForm'
  68. theme: null
  69. _title: 'Configure block'
  70. requirements:
  71. _permission: 'administer blocks'
  72. block.category_autocomplete:
  73. path: '/block-category/autocomplete'
  74. defaults:
  75. _controller: '\Drupal\block\Controller\CategoryAutocompleteController::autocomplete'
  76. requirements:
  77. _permission: 'administer blocks'