function ExtraFieldBlockCacheTagInvalidator::invalidateTags
Same name and namespace in other branches
- 10 core/modules/layout_builder/src/Cache/ExtraFieldBlockCacheTagInvalidator.php \Drupal\layout_builder\Cache\ExtraFieldBlockCacheTagInvalidator::invalidateTags()
Overrides CacheTagsInvalidatorInterface::invalidateTags
File
-
core/
modules/ layout_builder/ src/ Cache/ ExtraFieldBlockCacheTagInvalidator.php, line 29
Class
- ExtraFieldBlockCacheTagInvalidator
- Provides a cache tag invalidator that clears the block cache.
Namespace
Drupal\layout_builder\CacheCode
public function invalidateTags(array $tags) {
if (in_array('entity_field_info', $tags, TRUE)) {
if ($this->blockManager instanceof CachedDiscoveryInterface) {
$this->blockManager
->clearCachedDefinitions();
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.