You are here

public function InvalidationInterface::validateExpression in Purge 8.3

Validate the expression given to the invalidation during instantiation.

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.

See also

\Drupal\purge\Annotation\PurgeInvalidation::$expression_required

\Drupal\purge\Annotation\PurgeInvalidation::$expression_can_be_empty

1 method overrides InvalidationInterface::validateExpression()
InvalidationBase::validateExpression in src/Plugin/Purge/Invalidation/InvalidationBase.php
Validate the expression given to the invalidation during instantiation.

File

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

Class

InvalidationInterface
Desribes the invalidation object.

Namespace

Drupal\purge\Plugin\Purge\Invalidation

Code

public function validateExpression();