public function SymfonyEventDispatcher::alterQueueLoadedPaymentIds in Payment 8.2
Alters the payment IDs loaded by a payment queue.
Parameters
string $queue_id: The ID of the queue to alter IDs for.
string $category_id: The category of the IDs to alter.
int $owner_id: The ID of the user for whom the IDs are retrieved.
int[] $payment_ids: The IDs to alter.
Return value
int[] The altered IDs.
Overrides EventDispatcherInterface::alterQueueLoadedPaymentIds
File
- src/
SymfonyEventDispatcher.php, line 43
Class
- SymfonyEventDispatcher
- Dispatches Payment events through Symfony's event dispatcher.
Namespace
Drupal\paymentCode
public function alterQueueLoadedPaymentIds($queue_id, $category_id, $owner_id, array $payment_ids) {
$event = new PaymentQueuePaymentIdsAlter($queue_id, $category_id, $owner_id, $payment_ids);
$this->symfonyEventDispatcher
->dispatch(PaymentEvents::PAYMENT_QUEUE_PAYMENT_IDS_ALTER, $event);
$payment_ids = $event
->getPaymentIds();
return $payment_ids;
}