public function EventDispatcherCollection::preCapturePayment in Payment 8.2
Fires right before a payment will be captured.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment: The payment that will be captured.
Overrides EventDispatcherInterface::preCapturePayment
File
- src/
EventDispatcherCollection.php, line 82
Class
- EventDispatcherCollection
- Dispatches events to a collection of event dispatchers.
Namespace
Drupal\paymentCode
public function preCapturePayment(PaymentInterface $payment) {
foreach ($this->eventDispatchers as $event_dispatcher) {
$event_dispatcher
->preCapturePayment($payment);
}
}