You are here

public function ImmutableInvalidationBase::__toString in Purge 8.3

Return the string expression of the invalidation.

Return value

string Returns the string serialization, e.g. "node/1".

Overrides ImmutableInvalidationInterface::__toString

1 method overrides ImmutableInvalidationBase::__toString()
ImmutableInvalidation::__toString in src/Plugin/Purge/Invalidation/ImmutableInvalidation.php
Return the string expression of the invalidation.

File

src/Plugin/Purge/Invalidation/ImmutableInvalidationBase.php, line 76

Class

ImmutableInvalidationBase
Provides base implementations the immutable invalidation object.

Namespace

Drupal\purge\Plugin\Purge\Invalidation

Code

public function __toString() {
  return is_null($this->expression) ? '' : $this->expression;
}