You are here

uc_tax.routing.yml in Ubercart 8.4

uc_tax/uc_tax.routing.yml

File

uc_tax/uc_tax.routing.yml
View source
  1. # uc_tax.* routes are for the old (but still working) tax rate code.
  2. uc_tax.methods:
  3. path: '/admin/store/config/taxes'
  4. defaults:
  5. _form: '\Drupal\uc_tax\Form\TaxRateMethodsForm'
  6. _title: 'Taxes'
  7. requirements:
  8. _permission: 'administer taxes'
  9. uc_tax.rate_add:
  10. path: '/admin/store/config/taxes/add'
  11. defaults:
  12. _form: '\Drupal\uc_tax\Form\TaxRateAddForm'
  13. requirements:
  14. _permission: 'administer taxes'
  15. uc_tax.rate_edit:
  16. path: '/admin/store/config/taxes/{tax_rate}/edit'
  17. defaults:
  18. _form: '\Drupal\uc_tax\Form\TaxRateEditForm'
  19. requirements:
  20. _permission: 'administer taxes'
  21. uc_tax.rate_clone:
  22. path: '/admin/store/config/taxes/{tax_rate}/clone'
  23. defaults:
  24. _controller: '\Drupal\uc_tax\Controller\TaxController::saveClone'
  25. requirements:
  26. _permission: 'administer taxes'
  27. _csrf_token: 'TRUE'
  28. uc_tax.rate_delete:
  29. path: '/admin/store/config/taxes/{tax_rate}/delete'
  30. defaults:
  31. _form: '\Drupal\uc_tax\Form\TaxRateDeleteForm'
  32. requirements:
  33. _permission: 'administer taxes'
  34. # entity.uc_tax_rate routes are for the new configurations/plugin architecture.
  35. entity.uc_tax_rate.collection:
  36. path: '/admin/store/config/tax'
  37. defaults:
  38. _entity_list: 'uc_tax_rate'
  39. _title: 'Tax rates'
  40. requirements:
  41. _permission: 'administer taxes'
  42. entity.uc_tax_rate.add_form:
  43. path: '/admin/store/config/tax/add/{plugin_id}'
  44. defaults:
  45. _controller: '\Drupal\uc_tax\Controller\TaxRateController::addForm'
  46. _title: 'Add tax rate'
  47. requirements:
  48. _permission: 'administer taxes'
  49. entity.uc_tax_rate.edit_form:
  50. path: '/admin/store/config/tax/{uc_tax_rate}'
  51. defaults:
  52. _entity_form: 'uc_tax_rate.default'
  53. _title: 'Edit tax rate'
  54. requirements:
  55. _permission: 'administer taxes'
  56. entity.uc_tax_rate.clone:
  57. path: '/admin/store/config/tax/{uc_tax_rate}/clone'
  58. defaults:
  59. _controller: '\Drupal\uc_tax\Controller\TaxRateController::saveClone'
  60. _title: 'Clone tax rate'
  61. requirements:
  62. _permission: 'administer taxes'
  63. _csrf_token: 'TRUE'
  64. entity.uc_tax_rate.delete_form:
  65. path: '/admin/store/config/tax/{uc_tax_rate}/delete'
  66. defaults:
  67. _entity_form: 'uc_tax_rate.delete'
  68. _title: 'Delete tax rate'
  69. requirements:
  70. _permission: 'administer taxes'
  71. entity.uc_tax_rate.enable:
  72. path: '/admin/store/config/tax/{uc_tax_rate}/enable'
  73. defaults:
  74. _controller: '\Drupal\uc_tax\Controller\TaxRateController::performOperation'
  75. op: 'enable'
  76. requirements:
  77. _permission: 'administer taxes'
  78. _csrf_token: 'TRUE'
  79. entity.uc_tax_rate.disable:
  80. path: '/admin/store/config/tax/{uc_tax_rate}/disable'
  81. defaults:
  82. _controller: '\Drupal\uc_tax\Controller\TaxRateController::performOperation'
  83. op: 'disable'
  84. requirements:
  85. _permission: 'administer taxes'
  86. _csrf_token: 'TRUE'