You are here

payment.routing.yml in Payment 8.2

File

payment.routing.yml
View source
  1. payment.admin:
  2. path: '/admin/config/services/payment'
  3. defaults:
  4. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  5. _title: Payment
  6. requirements:
  7. _permission: 'access administration pages'
  8. payment.payment.collection_by_owner:
  9. path: '/user/{user}/payment'
  10. defaults:
  11. _controller: '\Drupal\payment\Controller\ViewPaymentsByOwner::execute'
  12. _title: 'Payments'
  13. requirements:
  14. _custom_access: '\Drupal\payment\Controller\ViewPaymentsByOwner::access'
  15. entity.payment.collection:
  16. path: '/admin/content/payment'
  17. defaults:
  18. _entity_list: payment
  19. _title: 'Payments'
  20. requirements:
  21. _permission: 'payment.payment.view.any'
  22. entity.payment.canonical:
  23. path: '/payment/{payment}'
  24. defaults:
  25. _entity_view: 'payment.full'
  26. _title_callback: '\Drupal\payment\Controller\ViewPayment::title'
  27. requirements:
  28. _entity_access: 'payment.view'
  29. entity.payment.update_status_form:
  30. path: '/payment/{payment}/update-status'
  31. defaults:
  32. _entity_form: 'payment.update_status'
  33. _title: Update payment status
  34. requirements:
  35. _entity_access: 'payment.update_status'
  36. options:
  37. _admin_route: TRUE
  38. entity.payment.capture_form:
  39. path: '/payment/{payment}/capture'
  40. defaults:
  41. _entity_form: 'payment.capture'
  42. _title: Capture payment
  43. requirements:
  44. _entity_access: 'payment.capture'
  45. options:
  46. _admin_route: TRUE
  47. entity.payment.refund_form:
  48. path: '/payment/{payment}/refund'
  49. defaults:
  50. _entity_form: 'payment.refund'
  51. _title: Refund payment
  52. requirements:
  53. _entity_access: 'payment.refund'
  54. options:
  55. _admin_route: TRUE
  56. entity.payment.complete:
  57. path: '/payment/{payment}/complete'
  58. defaults:
  59. _controller: '\Drupal\payment\Controller\CompletePayment::execute'
  60. requirements:
  61. _entity_access: 'payment.complete'
  62. _csrf_token: 'TRUE'
  63. entity.payment.delete_form:
  64. path: '/payment/{payment}/delete'
  65. defaults:
  66. _entity_form: 'payment.delete'
  67. requirements:
  68. _entity_access: 'payment.delete'
  69. options:
  70. _admin_route: TRUE
  71. payment.payment_method.collection:
  72. path: '/admin/config/services/payment/method'
  73. defaults:
  74. _controller: '\Drupal\payment\Controller\ListPaymentMethods::execute'
  75. _title: 'Payment methods'
  76. requirements:
  77. _permission: 'payment.payment_method_configuration.view.any'
  78. entity.payment_method_configuration.collection:
  79. path: '/admin/config/services/payment/method/configuration'
  80. defaults:
  81. _entity_list: 'payment_method_configuration'
  82. _title: 'Payment method configuration'
  83. requirements:
  84. _permission: 'payment.payment_method_configuration.view.any'
  85. payment.payment_method_configuration.select:
  86. path: '/admin/config/services/payment/method/configuration-add'
  87. defaults:
  88. _controller: '\Drupal\payment\Controller\SelectPaymentMethodConfiguration::execute'
  89. _title: 'Add payment method configuration'
  90. requirements:
  91. _custom_access: '\Drupal\payment\Controller\SelectPaymentMethodConfiguration::access'
  92. payment.payment_method_configuration.add:
  93. path: '/admin/config/services/payment/method/configuration-add/{plugin_id}'
  94. defaults:
  95. _controller: '\Drupal\payment\Controller\AddPaymentMethodConfiguration::execute'
  96. _title_callback: '\Drupal\payment\Controller\AddPaymentMethodConfiguration::title'
  97. requirements:
  98. _custom_access: '\Drupal\payment\Controller\AddPaymentMethodConfiguration::access'
  99. entity.payment_method_configuration.edit_form:
  100. path: '/admin/config/services/payment/method/configuration/{payment_method_configuration}'
  101. defaults:
  102. _entity_form: 'payment_method_configuration.default'
  103. _title_callback: '\Drupal\payment\Controller\EditPaymentMethodConfiguration::title'
  104. requirements:
  105. _entity_access: 'payment_method_configuration.update'
  106. entity.payment_method_configuration.enable:
  107. path: '/admin/config/services/payment/method/configuration/{payment_method_configuration}/enable'
  108. defaults:
  109. _controller: '\Drupal\payment\Controller\EnablePaymentMethodConfiguration::execute'
  110. requirements:
  111. _entity_access: 'payment_method_configuration.enable'
  112. _csrf_token: 'TRUE'
  113. entity.payment_method_configuration.disable:
  114. path: '/admin/config/services/payment/method/configuration/{payment_method_configuration}/disable'
  115. defaults:
  116. _controller: '\Drupal\payment\Controller\DisablePaymentMethodConfiguration::execute'
  117. requirements:
  118. _entity_access: 'payment_method_configuration.disable'
  119. _csrf_token: 'TRUE'
  120. entity.payment_method_configuration.delete_form:
  121. path: '/admin/config/services/payment/method/configuration/{payment_method_configuration}/delete'
  122. defaults:
  123. _entity_form: 'payment_method_configuration.delete'
  124. requirements:
  125. _entity_access: 'payment_method_configuration.delete'
  126. entity.payment_method_configuration.duplicate_form:
  127. path: '/admin/config/services/payment/method/configuration/{payment_method_configuration}/duplicate'
  128. defaults:
  129. _controller: '\Drupal\payment\Controller\DuplicatePaymentMethodConfiguration::execute'
  130. _title_callback: '\Drupal\payment\Controller\DuplicatePaymentMethodConfiguration::title'
  131. requirements:
  132. _entity_access: 'payment_method_configuration.duplicate'
  133. entity.payment_status.collection:
  134. path: '/admin/config/services/payment/status'
  135. defaults:
  136. _controller: '\Drupal\payment\Controller\ListPaymentStatuses::execute'
  137. _title: 'Payment statuses'
  138. requirements:
  139. _permission: 'payment.payment_status.administer'
  140. payment.payment_status.add:
  141. path: '/admin/config/services/payment/status/add'
  142. defaults:
  143. _controller: '\Drupal\payment\Controller\AddPaymentStatus::execute'
  144. _title: 'Add a payment status'
  145. requirements:
  146. _permission: 'payment.payment_status.administer'
  147. entity.payment_status.edit_form:
  148. path: '/admin/config/services/payment/status/edit/{payment_status}'
  149. defaults:
  150. _entity_form: 'payment_status.default'
  151. _title_callback: '\Drupal\payment\Controller\EditPaymentStatus::title'
  152. requirements:
  153. _entity_access: 'payment_status.update'
  154. entity.payment_status.delete_form:
  155. path: '/admin/config/services/payment/status/delete/{payment_status}'
  156. defaults:
  157. _entity_form: 'payment_status.delete'
  158. requirements:
  159. _entity_access: 'payment_status.delete'
  160. payment.payment_type.collection:
  161. path: '/admin/config/services/payment/type'
  162. defaults:
  163. _controller: '\Drupal\payment\Controller\ListPaymentTypes::execute'
  164. _title: Payment types
  165. requirements:
  166. _permission: 'payment.payment_type.administer'
  167. payment.payment_type:
  168. path: '/admin/config/services/payment/type/{bundle}'
  169. defaults:
  170. _controller: '\Drupal\payment\Controller\ConfigurePaymentType::execute'
  171. _title_callback: '\Drupal\payment\Controller\ConfigurePaymentType::title'
  172. requirements:
  173. _permission: 'payment.payment_type.administer'