interface CacheTagsInvalidatorInterface
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface
- 8.9.x core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface
- 10 core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface
Defines required methods for classes wanting to handle cache tag changes.
Services that implement this interface must add the cache_tags_invalidator tag to be notified. Cache backends may implement this interface as well, they will be notified automatically.
Hierarchy
- interface \Drupal\Core\Cache\CacheTagsInvalidatorInterface
Expanded class hierarchy of CacheTagsInvalidatorInterface
All classes that implement CacheTagsInvalidatorInterface
Related topics
20 files declare their use of CacheTagsInvalidatorInterface
- CacheBackendDecorator.php in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - CacheTagsChecksumDecorator.php in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheTagsChecksumDecorator.php - CacheTagsInvalidatorTest.php in core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTagsInvalidatorTest.php - CKEditor5CacheTag.php in core/
modules/ ckeditor5/ src/ EventSubscriber/ CKEditor5CacheTag.php - ConfigCacheTag.php in core/
modules/ system/ src/ EventSubscriber/ ConfigCacheTag.php
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheTagsInvalidatorInterface.php, line 14
Namespace
Drupal\Core\CacheView source
interface CacheTagsInvalidatorInterface {
/**
* Marks cache items with any of the specified tags as invalid.
*
* @param string[] $tags
* The list of tags for which to invalidate cache items.
*/
public function invalidateTags(array $tags);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
CacheTagsInvalidatorInterface::invalidateTags | public | function | Marks cache items with any of the specified tags as invalid. | 7 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.