public function EventDispatcherInterface::setPaymentStatus in Payment 8.2
Responds to a new payment status being set.
Parameters
\Drupal\payment\Entity\PaymentInterface $payment: The payment on which the new status has been set.
\Drupal\payment\Plugin\Payment\Status\PaymentStatusInterface|null $previous_payment_status: The payment's previous status or NULL if there is none.
2 methods override EventDispatcherInterface::setPaymentStatus()
- EventDispatcherCollection::setPaymentStatus in src/
EventDispatcherCollection.php - Responds to a new payment status being set.
- SymfonyEventDispatcher::setPaymentStatus in src/
SymfonyEventDispatcher.php - Responds to a new payment status being set.
File
- src/
EventDispatcherInterface.php, line 44
Class
- EventDispatcherInterface
- Defines a Payment event dispatcher.
Namespace
Drupal\paymentCode
public function setPaymentStatus(PaymentInterface $payment, PaymentStatusInterface $previous_payment_status = NULL);