You are here

public function CacheTagsInvalidator::addInvalidator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::addInvalidator()

Adds a cache tags invalidator.

Parameters

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $invalidator: A cache invalidator.

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 62
Contains \Drupal\Core\Cache\CacheTagsInvalidator.

Class

CacheTagsInvalidator
Passes cache tag events to classes that wish to respond to them.

Namespace

Drupal\Core\Cache

Code

public function addInvalidator(CacheTagsInvalidatorInterface $invalidator) {
  $this->invalidators[] = $invalidator;
}