commerce_funds-8.x-1.7/commerce_funds.routing.yml

commerce_funds.routing.yml
commerce_funds.settings:
  path: '/admin/commerce/funds'
  defaults:
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
    _title: 'Manage Funds'
    link_id: 'commerce_funds'
  requirements:
    _permission: 'administer funds+administer transactions+administer withdrawal requests'

commerce_funds.settings.global:
  path: '/admin/commerce/funds/configure/global'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfigureGlobal'
    _title: 'Global configuration'
    link_id: 'commerce_funds.settings.global'
  requirements:
    _permission: 'administer funds'

commerce_funds.settings.fees:
  path: '/admin/commerce/funds/configure/fees'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfigureFees'
    _title: 'Configure fees'
    link_id: 'commerce_funds.settings.fees'
  requirements:
    _permission: 'administer funds'

commerce_funds.settings.withdrawal_methods:
  path: '/admin/commerce/funds/configure/withdrawal-methods'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfigureWithdrawals'
    _title: 'Configure withdrawal methods'
    link_id: 'commerce_funds.settings.withdrawal_methods'
  requirements:
    _permission: 'administer funds'

commerce_funds.settings.exchange_rates:
  path: '/admin/commerce/funds/configure/exchange-rates'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfigureExchangeRates'
    _title: 'Configure exchange rates'
    link_id: 'commerce_funds.settings.exchange_rates'
  requirements:
    _permission: 'administer funds'

commerce_funds.settings.mails:
  path: '/admin/commerce/funds/configure/mails'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfigureMails'
    _title: 'Configure mails'
    link_id: 'commerce_funds.settings.mails'
  requirements:
    _permission: 'administer funds'

commerce_funds.admin.withdrawal_requests.approve:
  path: '/admin/commerce/funds/withdrawals/approve/{request_hash}'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfirmWithdrawalApproval'
    _title: 'Approve withdrawal request'
  requirements:
    _permission: 'administer withdrawal requests'
    request_hash: ^(\w|-)+$

commerce_funds.admin.withdrawal_requests.decline:
  path: '/admin/commerce/funds/withdrawals/decline/{request_hash}'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfirmWithdrawalDecline'
    _title: 'Decline withdrawal request'
  requirements:
    _permission: 'administer withdrawal requests'
    request_hash: ^(\w|-)+$

commerce_funds.deposit:
  path: '/user/funds/deposit'
  defaults:
    _form: '\Drupal\commerce_funds\Form\FundsDeposit'
    _title: 'Deposit funds'
    link_id: 'commerce_funds.deposit'
  requirements:
    _permission: 'deposit funds'

commerce_funds.withdrawal_methods:
  path: '/user/{user}/withdrawal-methods'
  defaults:
    _controller: '\Drupal\commerce_funds\Controller\WithdrawalMethods::content'
    _title: 'Configure Withdrawal Methods'
    link_id: 'commerce_funds.withdrawal_methods'
  requirements:
    _custom_access: '\Drupal\commerce_funds\Access\WithdrawalMethodAccessCheck::checkAccess'
  options:
    parameters:
      user:
        type: entity:user

commerce_funds.withdrawal_methods.edit:
  path: '/user/{user}/withdrawal-methods/{method}/edit'
  defaults:
    _controller: '\Drupal\commerce_funds\Controller\WithdrawalMethods::editMethod'
    _title: 'Configure Withdrawal Methods'
    link_id: 'commerce_funds.withdrawal_methods.edit'
  requirements:
    _custom_access: '\Drupal\commerce_funds\Access\WithdrawalMethodAccessCheck::checkAccess'
  options:
    parameters:
      user:
        type: entity:user
      method: ^(\w|-)+$

commerce_funds.withdraw:
  path: '/user/funds/withdraw'
  defaults:
    _form: '\Drupal\commerce_funds\Form\FundsWithdraw'
    _title: 'Submit a withdrawal request'
    link_id: 'commerce_funds.withdraw'
  requirements:
    _permission: 'withdraw funds'

commerce_funds.transfer:
  path: '/user/funds/transfer'
  defaults:
    _form: '\Drupal\commerce_funds\Form\FundsTransfer'
    _title: 'Transfer funds'
    link_id: 'commerce_funds.transfer'
  requirements:
    _permission: 'transfer funds'

commerce_funds.escrow:
  path: '/user/funds/escrow'
  defaults:
    _form: '\Drupal\commerce_funds\Form\FundsEscrow'
    _title: 'Create escrow payment'
    link_id: 'commerce_funds.escrow'
  requirements:
    _permission: 'create escrow payment'

commerce_funds.escrow.release:
  path: '/user/funds/escrow/manage/release/{transaction_hash}'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfirmEscrowRelease'
    _title: 'Release escrow payment'
    link_id: 'commerce_funds.escrow.release'
  requirements:
    _permission: 'create escrow payment'
    transaction_hash: ^(\w|-)+$

commerce_funds.escrow.cancel:
  path: '/user/funds/escrow/manage/cancel/{transaction_hash}'
  defaults:
    _form: '\Drupal\commerce_funds\Form\ConfirmEscrowCancel'
    _title: 'Cancel escrow payment'
    link_id: 'commerce_funds.escrow.cancel'
  requirements:
    _permission: 'create escrow payment'
    transaction_hash: ^(\w|-)+$

commerce_funds.convert_currencies:
  path: '/user/funds/converter'
  defaults:
    _form: '\Drupal\commerce_funds\Form\FundsConverter'
    _title: 'Convert currency'
    link_id: 'commerce_funds.converter'
  requirements:
    _permission: 'convert currencies'

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

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