You are here

basic_cart.routing.yml in Basic cart 8.0

File

basic_cart.routing.yml
View source
  1. basic_cart.cart:
  2. path: '/cart'
  3. defaults:
  4. _controller: '\Drupal\basic_cart\Controller\CartController::cart'
  5. _title_callback: '\Drupal\basic_cart\Controller\CartController::getCartPageTitle'
  6. requirements:
  7. _permission: 'basic_cart use_cart'
  8. basic_cart.checkout:
  9. path: '/checkout'
  10. defaults:
  11. _controller: '\Drupal\basic_cart\Controller\CartController::checkout'
  12. _title: 'Create Order'
  13. requirements:
  14. _permission: 'basic_cart use_cart'
  15. basic_cart.cartremove:
  16. path: '/cart/remove/{nid}'
  17. defaults:
  18. _controller: '\Drupal\basic_cart\Controller\CartController::removeFromCart'
  19. _title_callback: '\Drupal\basic_cart\Controller\CartController::getCartPageTitle'
  20. requirements:
  21. _permission: 'basic_cart use_cart'
  22. options:
  23. parameters:
  24. nid:
  25. with_config_overrides: TRUE
  26. basic_cart.cartadd:
  27. path: '/cart/add/{nid}'
  28. defaults:
  29. _controller: '\Drupal\basic_cart\Controller\CartController::addToCart'
  30. _title_callback: '\Drupal\basic_cart\Controller\CartController::getCartPageTitle'
  31. requirements:
  32. _permission: 'basic_cart use_cart'
  33. options:
  34. parameters:
  35. nid:
  36. with_config_overrides: TRUE
  37. basic_cart.create_direct_order:
  38. path: 'node/add/basic_cart_order'
  39. defaults:
  40. _controller: '\Drupal\basic_cart\Controller\CartController::orderCreate'
  41. _title: 'Create Order'
  42. requirements:
  43. _permission: 'basic_cart create_direct_orders'
  44. basic_cart.admin:
  45. path: 'admin/config/basic_cart'
  46. defaults:
  47. _form: '\Drupal\basic_cart\Form\CartSettingsForm'
  48. _title: 'Basic Cart Settings'
  49. requirements:
  50. _permission: 'basic_cart admin_cart'
  51. basic_cart.settings:
  52. path: 'admin/config/basic_cart/settings'
  53. defaults:
  54. _form: '\Drupal\basic_cart\Form\CartSettingsForm'
  55. _title: 'Basic Cart Settings'
  56. requirements:
  57. _permission: 'basic_cart admin_cart'
  58. basic_cart.checkout_settings:
  59. path: 'admin/config/basic_cart/checkout'
  60. defaults:
  61. _form: '\Drupal\basic_cart\Form\CheckOutSettingsForm'
  62. _title: 'Basic Cart Settings'
  63. requirements:
  64. _permission: 'basic_cart admin_cart'
  65. basic_cart.cartadddirect:
  66. path: '/cart/add/direct/{nid}'
  67. defaults:
  68. _controller: '\Drupal\basic_cart\Controller\CartController::addToCartNoRedirect'
  69. _title_callback: '\Drupal\basic_cart\Controller\CartController::getCartPageTitle'
  70. requirements:
  71. _permission: 'basic_cart use_cart'
  72. options:
  73. parameters:
  74. nid:
  75. with_config_overrides: TRUE
  76. basic_cart.thankyou:
  77. path: 'thankyou'
  78. defaults:
  79. _controller: '\Drupal\basic_cart\Controller\CartController::thankYouPage'
  80. _title_callback: '\Drupal\basic_cart\Controller\CartController::getThankyouPageTitle'
  81. requirements:
  82. _permission: 'basic_cart use_cart'