You are here

uc_report.routing.yml in Ubercart 8.4

uc_report/uc_report.routing.yml

File

uc_report/uc_report.routing.yml
View source
  1. uc_report.customers:
  2. path: '/admin/store/reports/customers'
  3. defaults:
  4. _controller: '\Drupal\uc_report\Controller\Reports::customers'
  5. _title: 'Customer reports'
  6. # 'description: 'View reports for store customers.'
  7. requirements:
  8. _permission: 'view reports'
  9. uc_report.products:
  10. path: '/admin/store/reports/products'
  11. defaults:
  12. _controller: '\Drupal\uc_report\Controller\Reports::products'
  13. _title: 'Product reports'
  14. # 'description: 'View reports for store products.'
  15. requirements:
  16. _permission: 'view reports'
  17. uc_report.products_summary:
  18. path: '/admin/store/reports/products/summary'
  19. defaults:
  20. _controller: '\Drupal\uc_report\Controller\Reports::products'
  21. _title: 'Product report'
  22. # 'type: MENU_DEFAULT_LOCAL_TASK
  23. requirements:
  24. _permission: 'view reports'
  25. uc_report.custom_report:
  26. path: '/admin/store/reports/products/custom'
  27. defaults:
  28. _controller: '\Drupal\uc_report\Controller\Reports::customProducts'
  29. _title: 'Custom product report'
  30. # 'description: 'View a customized product report'
  31. # 'type: MENU_LOCAL_TASK
  32. requirements:
  33. _permission: 'view reports'
  34. uc_report.sales:
  35. path: '/admin/store/reports/sales'
  36. defaults:
  37. _controller: '\Drupal\uc_report\Controller\Reports::sales'
  38. _title: 'Sales reports'
  39. # 'description: 'View reports for store sales.'
  40. requirements:
  41. _permission: 'view reports'
  42. uc_report.sales_summary:
  43. path: '/admin/store/reports/sales/summary'
  44. defaults:
  45. _controller: '\Drupal\uc_report\Controller\Reports::sales'
  46. _title: 'Sales summary'
  47. # 'description: 'View summary of all store sales'
  48. # 'type: MENU_DEFAULT_LOCAL_TASK
  49. requirements:
  50. _permission: 'view reports'
  51. uc_report.sales_year:
  52. path: '/admin/store/reports/sales/year'
  53. defaults:
  54. _controller: '\Drupal\uc_report\Controller\Reports::yearSales'
  55. _title: 'Sales per year'
  56. # 'description: 'View store sales for a particular year'
  57. # 'type: MENU_LOCAL_TASK
  58. requirements:
  59. _permission: 'view reports'
  60. uc_report.sales_custom_report:
  61. path: '/admin/store/reports/sales/custom'
  62. defaults:
  63. _controller: '\Drupal\uc_report\Controller\Reports::customSales'
  64. _title: 'Custom sales summary'
  65. # 'description: 'View a customized sales summary'
  66. # 'type: MENU_LOCAL_TASK
  67. requirements:
  68. _permission: 'view reports'
  69. uc_report.getcsv:
  70. path: '/admin/store/reports/getcsv/{report_id}/{user_id}'
  71. defaults:
  72. _controller: '\Drupal\uc_report\Controller\Reports::getCSV'
  73. requirements:
  74. _permission: 'view reports'