You are here

public function EventDispatcherCollection::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/EventDispatcherCollection.php, line 39

Class

EventDispatcherCollection
Dispatches events to a collection of event dispatchers.

Namespace

Drupal\payment

Code

public function alterQueueLoadedPaymentIds($queue_id, $category_id, $owner_id, array $payment_ids) {
  foreach ($this->eventDispatchers as $event_dispatcher) {
    $payment_ids = $event_dispatcher
      ->alterQueueLoadedPaymentIds($queue_id, $category_id, $owner_id, $payment_ids);
  }
  return $payment_ids;
}