public function SymfonyEventDispatcher::preExecutePayment in Payment 8.2
Fires right before a payment will be executed.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment: The payment that will be executed.
Overrides EventDispatcherInterface::preExecutePayment
File
- src/
SymfonyEventDispatcher.php, line 63
Class
- SymfonyEventDispatcher
- Dispatches Payment events through Symfony's event dispatcher.
Namespace
Drupal\paymentCode
public function preExecutePayment(PaymentInterface $payment) {
$event = new PaymentPreExecute($payment);
$this->symfonyEventDispatcher
->dispatch(PaymentEvents::PAYMENT_PRE_EXECUTE, $event);
}