You are here

add_to_head.routing.yml in Add To Head 8

File

add_to_head.routing.yml
View source
  1. add_to_head.admin:
  2. path: '/admin/config/development/add-to-head'
  3. defaults:
  4. _controller: '\Drupal\add_to_head\Controller\AddToHeadController::adminOverview'
  5. _title: 'Add To Head'
  6. requirements:
  7. _permission: 'administer add to head'
  8. add_to_head.add_profile:
  9. path: '/admin/config/development/add-to-head/add'
  10. defaults:
  11. _form: '\Drupal\add_to_head\Form\AddToHeadProfileForm'
  12. _title: 'Add New Profile'
  13. requirements:
  14. _permission: 'administer add to head'
  15. add_to_head.edit_profile:
  16. path: '/admin/config/development/add-to-head/{profile}/edit'
  17. defaults:
  18. _form: '\Drupal\add_to_head\Form\AddToHeadProfileForm'
  19. _title: 'Edit Profile'
  20. options:
  21. parameters:
  22. profile:
  23. type: add_to_head_profile
  24. requirements:
  25. _permission: 'administer add to head'
  26. add_to_head.delete_profile:
  27. path: '/admin/config/development/add-to-head/{profile}/delete'
  28. defaults:
  29. _form: '\Drupal\add_to_head\Form\AddToHeadDeleteProfileForm'
  30. _title: 'Delete Profile'
  31. options:
  32. parameters:
  33. profile:
  34. type: add_to_head_profile
  35. requirements:
  36. _permission: 'administer add to head'