You are here

uc_fulfillment.routing.yml in Ubercart 8.4

shipping/uc_fulfillment/uc_fulfillment.routing.yml

File

shipping/uc_fulfillment/uc_fulfillment.routing.yml
View source
  1. entity.uc_fulfillment_method.collection:
  2. path: '/admin/store/config/fulfillment'
  3. defaults:
  4. _entity_list: 'uc_fulfillment_method'
  5. _title: 'Fulfillment methods'
  6. requirements:
  7. _permission: 'fulfill orders'
  8. entity.uc_fulfillment_method.add_form:
  9. path: '/admin/store/config/fulfillment/add/{plugin_id}'
  10. defaults:
  11. _controller: '\Drupal\uc_fulfillment\Controller\FulfillmentMethodController::addForm'
  12. _title: 'Add fulfillment method'
  13. requirements:
  14. _permission: 'fulfill orders'
  15. entity.uc_fulfillment_method.edit_form:
  16. path: '/admin/store/config/fulfillment/{uc_fulfillment_method}'
  17. defaults:
  18. _entity_form: 'uc_fulfillment_method.default'
  19. _title: 'Edit fulfillment method'
  20. requirements:
  21. _permission: 'fulfill orders'
  22. entity.uc_fulfillment_method.enable:
  23. path: '/admin/store/config/fulfillment/{uc_fulfillment_method}/enable'
  24. defaults:
  25. _controller: '\Drupal\uc_fulfillment\Controller\FulfillmentMethodController::performOperation'
  26. op: 'enable'
  27. requirements:
  28. _permission: 'fulfill orders'
  29. _csrf_token: 'TRUE'
  30. entity.uc_fulfillment_method.disable:
  31. path: '/admin/store/config/fulfillment/{uc_fulfillment_method}/disable'
  32. defaults:
  33. _controller: '\Drupal\uc_fulfillment\Controller\FulfillmentMethodController::performOperation'
  34. op: 'disable'
  35. requirements:
  36. _permission: 'fulfill orders'
  37. _csrf_token: 'TRUE'
  38. entity.uc_fulfillment_method.delete_form:
  39. path: '/admin/store/config/fulfillment/{uc_fulfillment_method}/delete'
  40. defaults:
  41. _entity_form: 'uc_fulfillment_method.delete'
  42. _title: 'Delete fulfillment method'
  43. requirements:
  44. _permission: 'fulfill orders'
  45. # Packages.
  46. uc_fulfillment.packages:
  47. path: '/admin/store/orders/{uc_order}/packages'
  48. defaults:
  49. _controller: '\Drupal\uc_fulfillment\Controller\PackageController::listOrderPackages'
  50. _title_callback: '\Drupal\uc_order\Controller\OrderController::pageTitle'
  51. requirements:
  52. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  53. uc_fulfillment.new_package:
  54. path: '/admin/store/orders/{uc_order}/packages/new'
  55. defaults:
  56. _form: '\Drupal\uc_fulfillment\Form\NewPackageForm'
  57. _title: 'Create packages'
  58. requirements:
  59. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  60. uc_fulfillment.edit_package:
  61. path: '/admin/store/orders/{uc_order}/packages/{uc_package}/edit'
  62. defaults:
  63. _form: '\Drupal\uc_fulfillment\Form\PackageEditForm'
  64. _title: 'Edit package'
  65. requirements:
  66. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  67. options:
  68. parameters:
  69. uc_package:
  70. type: uc_package
  71. uc_fulfillment.cancel_package:
  72. path: '/admin/store/orders/{uc_order}/packages/{uc_package}/cancel'
  73. defaults:
  74. _form: '\Drupal\uc_fulfillment\Form\PackageCancelForm'
  75. _title: 'Cancel package shipment'
  76. requirements:
  77. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  78. options:
  79. parameters:
  80. uc_package:
  81. type: uc_package
  82. uc_fulfillment.delete_package:
  83. path: '/admin/store/orders/{uc_order}/packages/{uc_package}/delete'
  84. defaults:
  85. _form: '\Drupal\uc_fulfillment\Form\PackageDeleteForm'
  86. _title: 'Delete package'
  87. requirements:
  88. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  89. options:
  90. parameters:
  91. uc_package:
  92. type: uc_package
  93. # Shipments.
  94. uc_fulfillment.shipments:
  95. path: '/admin/store/orders/{uc_order}/shipments'
  96. defaults:
  97. _controller: '\Drupal\uc_fulfillment\Controller\ShipmentController::listOrderShipments'
  98. _title_callback: '\Drupal\uc_order\Controller\OrderController::pageTitle'
  99. requirements:
  100. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  101. uc_fulfillment.new_shipment:
  102. path: '/admin/store/orders/{uc_order}/shipments/new'
  103. defaults:
  104. _form: '\Drupal\uc_fulfillment\Form\NewShipmentForm'
  105. _title: 'New shipment'
  106. requirements:
  107. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessNewShipment'
  108. uc_fulfillment.view_shipment:
  109. path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}'
  110. defaults:
  111. _controller: '\Drupal\uc_fulfillment\Controller\ShipmentController::viewShipment'
  112. _title_callback: '\Drupal\uc_fulfillment\Controller\ShipmentController::pageTitle'
  113. requirements:
  114. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  115. options:
  116. parameters:
  117. uc_shipment:
  118. type: uc_shipment
  119. #uc_fulfillment.view_shipment:
  120. # path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}/view'
  121. # defaults:
  122. # _title: 'View'
  123. # 'weight' => -5,
  124. # 'type' => MENU_DEFAULT_LOCAL_TASK,
  125. uc_fulfillment.edit_shipment:
  126. path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}/edit'
  127. defaults:
  128. _form: '\Drupal\uc_fulfillment\Form\ShipmentEditForm'
  129. _title_callback: '\Drupal\uc_fulfillment\Controller\ShipmentController::pageTitle'
  130. requirements:
  131. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  132. options:
  133. parameters:
  134. uc_shipment:
  135. type: uc_shipment
  136. uc_fulfillment.packing_slip:
  137. path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}/packing_slip'
  138. defaults:
  139. _controller: '\Drupal\uc_fulfillment\Controller\ShipmentController::printShipment'
  140. _title_callback: '\Drupal\uc_fulfillment\Controller\ShipmentController::pageTitle'
  141. requirements:
  142. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  143. options:
  144. parameters:
  145. uc_shipment:
  146. type: uc_shipment
  147. uc_fulfillment.print_shipment:
  148. path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}/print'
  149. defaults:
  150. _controller: '\Drupal\uc_fulfillment\Controller\ShipmentController::printShipment'
  151. _title_callback: '\Drupal\uc_fulfillment\Controller\ShipmentController::pageTitle'
  152. print: TRUE
  153. requirements:
  154. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  155. options:
  156. parameters:
  157. uc_shipment:
  158. type: uc_shipment
  159. uc_fulfillment.delete_shipment:
  160. path: '/admin/store/orders/{uc_order}/shipments/{uc_shipment}/delete'
  161. defaults:
  162. _form: '\Drupal\uc_fulfillment\Form\ShipmentDeleteForm'
  163. _title_callback: '\Drupal\uc_fulfillment\Controller\ShipmentController::pageTitle'
  164. requirements:
  165. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'
  166. options:
  167. parameters:
  168. uc_shipment:
  169. type: uc_shipment
  170. uc_fulfillment.make_shipment:
  171. path: '/admin/store/orders/{uc_order}/ship'
  172. defaults:
  173. _controller: '\Drupal\uc_fulfillment\Controller\ShipmentController::makeShipment'
  174. _title: 'Ship packages'
  175. requirements:
  176. _custom_access: '\Drupal\uc_fulfillment\Controller\FulfillmentController::accessOrder'