You are here

public function InvalidationsServiceInterface::getFromQueueData in Purge 8.3

Replicate a invalidation object from serialized queue item data.

Parameters

string $item_data: Arbitrary PHP data structured that was stored into the queue.

Return value

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface The invalidation object.

Throws

\Drupal\purge\Plugin\Purge\Invalidation\Exception\MissingExpressionException Thrown when plugin defined expression_required = TRUE and when it is instantiated without expression (NULL).

\Drupal\purge\Plugin\Purge\Invalidation\Exception\InvalidExpressionException Exception thrown when plugin got instantiated with an expression that is not deemed valid for the type of invalidation.

1 method overrides InvalidationsServiceInterface::getFromQueueData()
InvalidationsService::getFromQueueData in src/Plugin/Purge/Invalidation/InvalidationsService.php
Replicate a invalidation object from serialized queue item data.

File

src/Plugin/Purge/Invalidation/InvalidationsServiceInterface.php, line 74

Class

InvalidationsServiceInterface
Describes a service that instantiates invalidation objects on-demand.

Namespace

Drupal\purge\Plugin\Purge\Invalidation

Code

public function getFromQueueData($item_data);