You are here

commerce_order.routing.yml in Commerce Core 8.2

modules/order/commerce_order.routing.yml

File

modules/order/commerce_order.routing.yml
View source
  1. commerce_order.configuration:
  2. path: '/admin/commerce/config/orders'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: 'Orders'
  6. requirements:
  7. _permission: 'access commerce administration pages'
  8. commerce_order.settings:
  9. path: '/admin/commerce/config/orders/settings'
  10. defaults:
  11. _form: '\Drupal\commerce_order\Form\OrderSettingsForm'
  12. _title: 'Order settings'
  13. requirements:
  14. _permission: 'administer commerce_order'
  15. entity.commerce_order.add_page:
  16. path: '/admin/commerce/orders/add'
  17. defaults:
  18. _form: '\Drupal\commerce_order\Form\OrderAddForm'
  19. _title: 'Create a new order'
  20. requirements:
  21. _entity_create_any_access: 'commerce_order'
  22. entity.commerce_order.reassign_form:
  23. path: '/admin/commerce/orders/{commerce_order}/reassign'
  24. defaults:
  25. _form: '\Drupal\commerce_order\Form\OrderReassignForm'
  26. _title: 'Reassign order'
  27. options:
  28. parameters:
  29. commerce_order:
  30. type: 'entity:commerce_order'
  31. requirements:
  32. _permission: 'administer commerce_order'
  33. entity.commerce_order.unlock_form:
  34. path: '/admin/commerce/orders/{commerce_order}/unlock'
  35. defaults:
  36. _entity_form: 'commerce_order.unlock'
  37. requirements:
  38. _entity_access: 'commerce_order.unlock'
  39. entity.commerce_order.user_view:
  40. path: '/user/{user}/orders/{commerce_order}'
  41. defaults:
  42. _entity_view: 'commerce_order.user'
  43. _title: 'Order information'
  44. requirements:
  45. _custom_access: '\Drupal\commerce_order\Access\OrderUserViewAccessCheck::checkAccess'
  46. options:
  47. parameters:
  48. entity:
  49. user: 'entity:user'
  50. commerce_order: 'entity:order'
  51. commerce_order.address_book.overview:
  52. path: '/user/{user}/address-book'
  53. defaults:
  54. _controller: '\Drupal\commerce_order\Controller\AddressBookController::overviewPage'
  55. _title: 'Address book'
  56. options:
  57. parameters:
  58. user:
  59. type: 'entity:user'
  60. requirements:
  61. _address_book_access: 'TRUE'
  62. _custom_access: '\Drupal\commerce_order\Controller\AddressBookController::checkOverviewAccess'
  63. commerce_order.address_book.add_form:
  64. path: '/user/{user}/address-book/add/{profile_type}'
  65. defaults:
  66. _controller: '\Drupal\commerce_order\Controller\AddressBookController::addForm'
  67. _title: 'Add address'
  68. options:
  69. parameters:
  70. user:
  71. type: 'entity:user'
  72. profile_type:
  73. type: 'entity:profile_type'
  74. requirements:
  75. _address_book_access: 'TRUE'
  76. _custom_access: '\Drupal\commerce_order\Controller\AddressBookController::checkCreateAccess'
  77. commerce_order.address_book.edit_form:
  78. path: '/user/{user}/address-book/{profile}/edit'
  79. defaults:
  80. _entity_form: 'profile.address-book-edit'
  81. _title_callback: '\Drupal\commerce_order\Controller\AddressBookController::editTitle'
  82. options:
  83. parameters:
  84. user:
  85. type: 'entity:user'
  86. profile:
  87. type: 'entity:profile'
  88. requirements:
  89. _address_book_access: 'TRUE'
  90. _entity_access: 'profile.update'
  91. profile: '\d+'
  92. commerce_order.address_book.delete_form:
  93. path: '/user/{user}/address-book/{profile}/delete'
  94. defaults:
  95. _entity_form: 'profile.address-book-delete'
  96. _title_callback: '\Drupal\commerce_order\Controller\AddressBookController::deleteTitle'
  97. options:
  98. parameters:
  99. user:
  100. type: 'entity:user'
  101. profile:
  102. type: 'entity:profile'
  103. requirements:
  104. _address_book_access: 'TRUE'
  105. _entity_access: 'profile.delete'
  106. profile: '\d+'
  107. commerce_order.address_book.set_default:
  108. path: '/user/{user}/address-book/{profile}/set-default'
  109. defaults:
  110. _controller: '\Drupal\commerce_order\Controller\AddressBookController::setDefault'
  111. options:
  112. parameters:
  113. user:
  114. type: 'entity:user'
  115. profile:
  116. type: 'entity:profile'
  117. requirements:
  118. _address_book_access: 'TRUE'
  119. _entity_access: 'profile.update'
  120. profile: '\d+'
  121. _csrf_token: 'TRUE'