public function EventDispatcherCollection::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/
EventDispatcherCollection.php, line 60
Class
- EventDispatcherCollection
- Dispatches events to a collection of event dispatchers.
Namespace
Drupal\paymentCode
public function preExecutePayment(PaymentInterface $payment) {
foreach ($this->eventDispatchers as $event_dispatcher) {
$event_dispatcher
->preExecutePayment($payment);
}
}