You are here

commerce_checkout.routing.yml in Commerce Core 8.2

modules/checkout/commerce_checkout.routing.yml

File

modules/checkout/commerce_checkout.routing.yml
View source
  1. commerce_checkout.form:
  2. path: '/checkout/{commerce_order}/{step}'
  3. defaults:
  4. _controller: '\Drupal\commerce_checkout\Controller\CheckoutController::formPage'
  5. _title: 'Checkout'
  6. step: null
  7. requirements:
  8. _custom_access: '\Drupal\commerce_checkout\Controller\CheckoutController::checkAccess'
  9. options:
  10. parameters:
  11. commerce_order:
  12. type: entity:commerce_order
  13. commerce_checkout.checkout:
  14. path: '/checkout'
  15. defaults:
  16. _controller: '\Drupal\commerce_checkout\Controller\CheckoutController::checkoutRedirect'
  17. requirements:
  18. _permission: 'access checkout'
  19. options:
  20. no_cache: TRUE