function CacheTagsInvalidator::addInvalidator
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::addInvalidator()
- 10 core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php \Drupal\Core\Cache\CacheTagsInvalidator::addInvalidator()
- 11.x 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 58
Class
- CacheTagsInvalidator
- Passes cache tag events to classes that wish to respond to them.
Namespace
Drupal\Core\CacheCode
public function addInvalidator(CacheTagsInvalidatorInterface $invalidator) {
$this->invalidators[] = $invalidator;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.