You are here

colorapi.routing.yml in Color API 8

File

colorapi.routing.yml
View source
  1. colorapi.admin_config:
  2. path: '/admin/config/color'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Colors'
  6. requirements:
  7. _permission: 'administer colors'
  8. colorapi.color_settings:
  9. path: '/admin/config/color/settings'
  10. defaults:
  11. _controller: 'Drupal\colorapi\Controller\PageController::moduleSettingsPage'
  12. _title: 'Color Settings'
  13. requirements:
  14. _permission: 'administer colors'
  15. entity.colorapi_color.collection:
  16. path: '/admin/config/color/colors'
  17. defaults:
  18. _entity_list: 'colorapi_color'
  19. _title: 'Color configuration'
  20. requirements:
  21. _permission: 'administer colors'
  22. entity.colorapi_color.add_form:
  23. path: '/admin/config/color/colors/add'
  24. defaults:
  25. _entity_form: 'colorapi_color.add'
  26. _title: 'Add color'
  27. requirements:
  28. _permission: 'administer colors'
  29. entity.colorapi_color.edit_form:
  30. path: '/admin/config/color/colors/{colorapi_color}'
  31. defaults:
  32. _entity_form: 'colorapi_color.edit'
  33. _title: 'Edit color'
  34. requirements:
  35. _permission: 'administer colors'
  36. entity.colorapi_color.delete_form:
  37. path: '/admin/config/color/colors/{colorapi_color}/delete'
  38. defaults:
  39. _entity_form: 'colorapi_color.delete'
  40. _title: 'Delete color'
  41. requirements:
  42. _permission: 'administer colors'