You are here

public function InvalidationInterface::deleteProperty in Purge 8.3

Delete a purger specific property.

Once ::setStateContext() has been called, purgers can call ::setProperty() and ::getProperty() to store specific metadata on the invalidation. The most common usecase for setting properties is for multi-step cache invalidation, for instance CDNs returning IDs to check against later.

Parameters

string $key: The key of the stored property, unique to the current purger context.

Throws

\LogicException Thrown when operating in general context, call ::setStateContext() first.

1 method overrides InvalidationInterface::deleteProperty()
InvalidationBase::deleteProperty in src/Plugin/Purge/Invalidation/InvalidationBase.php
Delete a purger specific property.

File

src/Plugin/Purge/Invalidation/InvalidationInterface.php, line 31

Class

InvalidationInterface
Desribes the invalidation object.

Namespace

Drupal\purge\Plugin\Purge\Invalidation

Code

public function deleteProperty($key);