braintree_cashier-8.x-4.x-dev/braintree_cashier.routing.yml

braintree_cashier.routing.yml
braintree_cashier.signup_form:
  path: '/signup'
  defaults:
    _form: '\Drupal\braintree_cashier\Form\SignupForm'
    _title: 'Signup'
  requirements:
    # access is open since anyone should be allowed to visit the sign up page.
    _access: 'TRUE'

braintree_cashier.admin_index:
  path: '/admin/braintree-cashier'
  defaults:
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
    _title: 'Braintree Cashier'
  requirements:
    _permission: 'administer braintree cashier'
  options:
    _admin_route: TRUE

braintree_cashier.braintree_cashier_settings_form:
  path: '/admin/braintree-cashier/settings'
  defaults:
    _form: '\Drupal\braintree_cashier\Form\SettingsForm'
    _title: 'SettingsForm'
  requirements:
    _permission: 'administer braintree cashier'
  options:
    _admin_route: TRUE

braintree_cashier.invoices:
  path: '/user/{user}/subscription/invoices'
  defaults:
    _controller: '\Drupal\braintree_cashier\Controller\InvoicesController::invoices'
    _title: 'Invoices'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\InvoicesController::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.payment_method:
  path: '/user/{user}/subscription/payment-method'
  defaults:
    _form: '\Drupal\braintree_cashier\Form\PaymentMethodForm'
    _title: 'Update your payment method'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Form\PaymentMethodForm::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.cancel:
  path: '/user/{user}/subscription/cancel'
  defaults:
    _form: '\Drupal\braintree_cashier\Form\CancelForm'
    _title: 'Confirm cancellation'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Form\CancelForm::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.update_confirm:
  path: '/user/{user}/subscription/update/confirm/{billing_plan}/{coupon_code}'
  defaults:
    _form: '\Drupal\braintree_cashier\Form\UpdateSubscriptionFormConfirm'
    _title: 'Confirm subscription update'
    coupon_code: ''
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\MySubscriptionController::accessRoute'
  options:
    parameters:
      user:
        type: entity:user
      billing_plan:
        type: entity:braintree_cashier_billing_plan


braintree_cashier.single_invoice_view:
  path: '/user/{user}/subscription/invoices/{invoice}'
  defaults:
    _controller: '\Drupal\braintree_cashier\Controller\SingleInvoiceController::view'
    _title: 'View invoice'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\MySubscriptionController::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.single_invoice_download:
  path: '/user/{user}/subscription/invoices/{invoice}/download'
  defaults:
    _controller: '\Drupal\braintree_cashier\Controller\SingleInvoiceController::download'
    _title: 'View invoice'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\MySubscriptionController::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.my_subscription:
  path: '/user/{user}/subscription'
  defaults:
    _controller: '\Drupal\braintree_cashier\Controller\MySubscriptionController::view'
    _title: 'My Subscription'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\MySubscriptionController::accessRoute'
  options:
    parameters:
      user:
        type: entity:user

braintree_cashier.thank_you:
  path: '/thank-you/{subscription}'
  defaults:
    _controller: '\Drupal\braintree_cashier\Controller\ThankYouController::view'
    _title: 'Success!'
  requirements:
    _custom_access: '\Drupal\braintree_cashier\Controller\ThankYouController::accessRoute'
  options:
    parameters:
      subscription:
        type: entity:braintree_cashier_subscription

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc