You are here

token_custom.routing.yml in Custom Tokens 8

File

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