You are here

public function ImmutableInvalidationBase::getProperties in Purge 8.3

Get all stored properties.

Return value

array[] Associative array in which the keys point to purger instances and where each value represents a associative array with key-value stored metadata.

Throws

\LogicException Thrown when NOT operating in general context.

Overrides ImmutableInvalidationInterface::getProperties

File

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

Class

ImmutableInvalidationBase
Provides base implementations the immutable invalidation object.

Namespace

Drupal\purge\Plugin\Purge\Invalidation

Code

public function getProperties() {
  if (!is_null($this->context)) {
    throw new \LogicException('Cannot retrieve properties in purger context.');
  }
  return $this->properties;
}