public function EventDispatcherInterface::executePaymentAccess in Payment 8.2
Checks access for before executing a payment.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment: The payment that will be executed.
\Drupal\payment\Plugin\Payment\Method\PaymentMethodInterface $payment_method: The payment method that will execute the payment.
\Drupal\Core\Session\AccountInterface $account: The account for which to check access.
Return value
\Drupal\Core\Access\AccessResultInterface
2 methods override EventDispatcherInterface::executePaymentAccess()
- EventDispatcherCollection::executePaymentAccess in src/
EventDispatcherCollection.php - Checks access for before executing a payment.
- SymfonyEventDispatcher::executePaymentAccess in src/
SymfonyEventDispatcher.php - Checks access for before executing a payment.
File
- src/
EventDispatcherInterface.php, line 66
Class
- EventDispatcherInterface
- Defines a Payment event dispatcher.
Namespace
Drupal\paymentCode
public function executePaymentAccess(PaymentInterface $payment, PaymentMethodInterface $payment_method, AccountInterface $account);