You are here

public function AcquiaLiftQueue::createItem in Acquia Lift Connector 7

Overrides SystemQueue::createItem().

Prevents duplicate requests from being queued up during the same page request.

Parameters

$data:

Return value

bool|void

Overrides SystemQueue::createItem

File

includes/acquia_lift.classes.inc, line 1888
Provides an agent type for Acquia Lift

Class

AcquiaLiftQueue
Class AcquiaLiftQueue

Code

public function createItem($data) {
  if (isset($data['hash'])) {
    if (in_array($data['hash'], self::$items)) {
      return;
    }
    else {
      self::$items[] = $data['hash'];
      unset($data['hash']);
    }
  }
  parent::createItem($data);
}