You are here

hacked.routing.yml in Hacked! 8.2

File

hacked.routing.yml
View source
  1. hacked.report:
  2. path: '/admin/reports/hacked'
  3. defaults:
  4. _controller: '\Drupal\hacked\Controller\HackedController::hackedStatus'
  5. _title: 'Hacked'
  6. requirements:
  7. _permission: 'administer site configuration'
  8. hacked.settings:
  9. path: '/admin/reports/hacked/settings'
  10. defaults:
  11. _form: 'Drupal\hacked\Form\HackedSettingsForm'
  12. _title: 'Settings'
  13. requirements:
  14. _permission: 'administer site configuration'
  15. hacked.manual_status:
  16. path: '/admin/reports/hacked/check'
  17. defaults:
  18. _title: 'Manual hacked check'
  19. _controller: '\Drupal\hacked\Controller\HackedController::hackedStatusManually'
  20. requirements:
  21. _permission: 'administer site configuration'
  22. hacked.project:
  23. path: '/admin/reports/hacked/{project}'
  24. defaults:
  25. _title_callback: '\Drupal\hacked\Controller\HackedController::hackedProjectTitle'
  26. _controller: '\Drupal\hacked\Controller\HackedController::hackedProject'
  27. requirements:
  28. _permission: 'administer site configuration'
  29. options:
  30. parameters:
  31. project:
  32. type: hacked_project
  33. loader: TRUE
  34. hacked.project_diff:
  35. path: '/admin/reports/hacked/{project}/diff'
  36. defaults:
  37. _title_callback: '\Drupal\hacked\Controller\HackedDiffController::hackedProjectDiffTitle'
  38. _controller: '\Drupal\hacked\Controller\HackedDiffController::hackedProjectDiff'
  39. requirements:
  40. _permission: 'administer site configuration'
  41. _module_dependencies: 'diff'
  42. options:
  43. parameters:
  44. project:
  45. type: hacked_project
  46. loader: TRUE