You are here

commerce_reports.routing.yml in Commerce Reporting 8

File

commerce_reports.routing.yml
View source
  1. commerce_reports.overview:
  2. path: '/admin/commerce/reports'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Reports'
  6. requirements:
  7. _permission: 'access commerce reports'
  8. commerce_reports.report:
  9. path: '/admin/commerce/reports/{report_type_id}/{type}'
  10. defaults:
  11. _controller: '\Drupal\commerce_reports\Controller\ReportTable::viewReport'
  12. _title: 'View report'
  13. type: 'month'
  14. requirements:
  15. _permission: 'access commerce reports'
  16. commerce_reports.configuration:
  17. path: '/admin/commerce/config/reports'
  18. defaults:
  19. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  20. _title: 'Reports'
  21. requirements:
  22. _permission: 'access commerce administration pages'
  23. commerce_reports.generate_form:
  24. path: '/admin/commerce/config/reports/generate-reports'
  25. defaults:
  26. _form: '\Drupal\commerce_reports\Form\OrderReportGenerateForm'
  27. _title: 'Generate order reports'
  28. options:
  29. _admin_route: TRUE
  30. requirements:
  31. _permission: 'generate commerce order reports'