public function SymfonyEventDispatcher::preResumeContext in Payment 8.2
Fires right before a payment type's context is resumed.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment: The payment of which the type's context will be resumed.
Overrides EventDispatcherInterface::preResumeContext
File
- src/
SymfonyEventDispatcher.php, line 99
Class
- SymfonyEventDispatcher
- Dispatches Payment events through Symfony's event dispatcher.
Namespace
Drupal\paymentCode
public function preResumeContext(PaymentInterface $payment) {
$event = new PaymentTypePreResumeContext($payment);
$this->symfonyEventDispatcher
->dispatch(PaymentEvents::PAYMENT_TYPE_PRE_RESUME_CONTEXT, $event);
}