You are here

protected function AcquiaPurgeService::queueItemPaths in Acquia Purge 7

Filter out the HTTP path from a list of queue item objects.

Parameters

array $items: Non-associative array with item objects, each object has at least the following properties (see AcquiaPurgeQueueInterface::claimItem()):

  • data: the same as what what passed into createItem().
  • item_id: the unique ID returned from createItem().
  • created: timestamp when the item was put into the queue.

Return value

string[] Non-associative array with the HTTP paths to be purged.

1 call to AcquiaPurgeService::queueItemPaths()
AcquiaPurgeService::process in lib/AcquiaPurgeService.php
Process as many items from the queue as the runtime capacity allows.

File

lib/AcquiaPurgeService.php, line 564
Contains AcquiaPurgeService.

Class

AcquiaPurgeService
The Acquia Purge service.

Code

protected function queueItemPaths(array $items) {
  $paths = array();
  foreach ($items as $item) {
    $paths[] = $item
      ->getPath();
  }
  return $paths;
}