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