interface CacheTagsInvalidatorInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
9 files declare their use of CacheTagsInvalidatorInterface
- ConfigCacheTag.php in core/
modules/ system/ src/ EventSubscriber/ ConfigCacheTag.php - Contains \Drupal\system\EventSubscriber\ConfigCacheTag.
- ElementInfoManager.php in core/
lib/ Drupal/ Core/ Render/ ElementInfoManager.php - Contains \Drupal\Core\Render\ElementInfoManager.
- EntityFieldManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityFieldManagerTest.php - Contains \Drupal\Tests\Core\Entity\EntityFieldManagerTest.
- EntityTypeBundleInfoTest.php in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeBundleInfoTest.php - Contains \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest.
- LocaleTranslationCacheTag.php in core/
modules/ locale/ src/ EventSubscriber/ LocaleTranslationCacheTag.php - Contains \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag.
File
- core/
lib/ Drupal/ Core/ Cache/ CacheTagsInvalidatorInterface.php, line 19 - Contains \Drupal\Core\Cache\CacheTagsInvalidatorInterface.
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheTagsInvalidatorInterface:: |
public | function | Marks cache items with any of the specified tags as invalid. | 5 |