You are here

public function ProxyItem::__construct in Purge 8.3

Construct a proxy item object.

Parameters

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface $invalidation: Invalidation object being wrapped in a proxy.

\Drupal\purge\Plugin\Purge\Queue\TxBufferInterface $buffer: The current transaction buffer used by the queue service.

Overrides ProxyItemInterface::__construct

See also

\Drupal\Core\Queue\QueueInterface::createItem

\Drupal\Core\Queue\QueueInterface::claimItem

\Drupal\Core\Queue\QueueInterface::deleteItem

\Drupal\Core\Queue\QueueInterface::releaseItem

File

src/Plugin/Purge/Queue/ProxyItem.php, line 78

Class

ProxyItem
Provides a proxy item.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function __construct(InvalidationInterface $invalidation, TxBufferInterface $buffer) {
  $this->invalidation = $invalidation;
  $this->buffer = $buffer;
}