CacheTagsInvalidator::addInvalidator

public CacheTagsInvalidator::addInvalidator(CacheTagsInvalidatorInterface $invalidator)

Adds a cache tags invalidator.

Parameters

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

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php, line 57

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;
}
doc_Drupal
2016-10-29 08:49:37
Comments
Leave a Comment

Please login to continue.