shortcut.routing.yml

Same filename in other branches
  1. 9 core/modules/shortcut/shortcut.routing.yml
  2. 8.9.x core/modules/shortcut/shortcut.routing.yml
  3. 11.x core/modules/shortcut/shortcut.routing.yml
core/modules/shortcut/shortcut.routing.yml
8 string references to YAML keys in shortcut.routing.yml
ShortcutDeleteForm::getCancelUrl in core/modules/shortcut/src/Form/ShortcutDeleteForm.php
Returns the route to go to if the user cancels the action.
ShortcutForm::save in core/modules/shortcut/src/ShortcutForm.php
Form submission handler for the 'save' action.
ShortcutLazyBuilders::lazyLinks in core/modules/shortcut/src/ShortcutLazyBuilders.php
#lazy_builder callback; builds shortcut toolbar links.
ShortcutLocalTasksTest::getShortcutPageRoutes in core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php
Provides a list of routes to test.
ShortcutLocalTasksTest::testShortcutPageLocalTasks in core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php
Checks shortcut listing local tasks.

... See full list

File

core/modules/shortcut/shortcut.routing.yml

View source
  1. entity.shortcut_set.delete_form:
  2. path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/delete'
  3. defaults:
  4. _entity_form: 'shortcut_set.delete'
  5. _title: 'Delete shortcut set'
  6. requirements:
  7. _entity_access: 'shortcut_set.delete'
  8. entity.shortcut_set.collection:
  9. path: '/admin/config/user-interface/shortcut'
  10. defaults:
  11. _entity_list: 'shortcut_set'
  12. _title: 'Shortcuts'
  13. requirements:
  14. _permission: 'administer shortcuts'
  15. shortcut.set_add:
  16. path: '/admin/config/user-interface/shortcut/add-set'
  17. defaults:
  18. _entity_form: 'shortcut_set.add'
  19. _title: 'Add shortcut set'
  20. requirements:
  21. _entity_create_access: 'shortcut_set'
  22. entity.shortcut_set.edit_form:
  23. path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}'
  24. defaults:
  25. _entity_form: 'shortcut_set.edit'
  26. _title: 'Edit shortcut set'
  27. requirements:
  28. _entity_access: 'shortcut_set.update'
  29. shortcut.link_add_inline:
  30. path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link-inline'
  31. defaults:
  32. _controller: '\Drupal\shortcut\Controller\ShortcutSetController::addShortcutLinkInline'
  33. requirements:
  34. _entity_access: 'shortcut_set.update'
  35. _csrf_token: 'TRUE'
  36. entity.shortcut_set.customize_form:
  37. path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/customize'
  38. defaults:
  39. _entity_form: 'shortcut_set.customize'
  40. _title: 'List links'
  41. requirements:
  42. _entity_access: 'shortcut_set.update'
  43. shortcut.link_add:
  44. path: '/admin/config/user-interface/shortcut/manage/{shortcut_set}/add-link'
  45. defaults:
  46. _controller: '\Drupal\shortcut\Controller\ShortcutController::addForm'
  47. _title: 'Add link'
  48. requirements:
  49. _entity_create_access: 'shortcut:{shortcut_set}'
  50. entity.shortcut.canonical:
  51. path: '/admin/config/user-interface/shortcut/link/{shortcut}'
  52. defaults:
  53. _entity_form: 'shortcut.default'
  54. _title: 'Edit'
  55. requirements:
  56. _entity_access: 'shortcut.update'
  57. shortcut: \d+
  58. entity.shortcut.edit_form:
  59. path: '/admin/config/user-interface/shortcut/link/{shortcut}'
  60. defaults:
  61. _entity_form: 'shortcut.default'
  62. _title: 'Edit'
  63. requirements:
  64. _entity_access: 'shortcut.update'
  65. shortcut: \d+
  66. entity.shortcut.link_delete_inline:
  67. path: '/admin/config/user-interface/shortcut/link/{shortcut}/delete-inline'
  68. defaults:
  69. _controller: '\Drupal\shortcut\Controller\ShortcutController::deleteShortcutLinkInline'
  70. requirements:
  71. _entity_access: 'shortcut.delete'
  72. _csrf_token: 'TRUE'
  73. shortcut: \d+
  74. entity.shortcut.delete_form:
  75. path: '/admin/config/user-interface/shortcut/link/{shortcut}/delete'
  76. defaults:
  77. _entity_form: 'shortcut.delete'
  78. _title: 'Delete'
  79. requirements:
  80. _entity_access: 'shortcut.delete'
  81. shortcut: \d+
  82. shortcut.set_switch:
  83. path: '/user/{user}/shortcuts'
  84. defaults:
  85. _form: '\Drupal\shortcut\Form\SwitchShortcutSet'
  86. _title: 'Shortcuts'
  87. requirements:
  88. _custom_access: '\Drupal\shortcut\Form\SwitchShortcutSet::checkAccess'
  89. options:
  90. _admin_route: TRUE
  91. user: \d+

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