Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface
  2. 9 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

Expanded class hierarchy of CacheTagsInvalidatorInterface

All classes that implement CacheTagsInvalidatorInterface

Related topics

12 files declare their use of CacheTagsInvalidatorInterface
CacheTagsInvalidatorTest.php in core/tests/Drupal/Tests/Core/Cache/CacheTagsInvalidatorTest.php
CKEditor5CacheTag.php in core/modules/ckeditor5/src/EventSubscriber/CKEditor5CacheTag.php
ConfigEntityStorageTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php
EntityTypeBundleInfoTest.php in core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php
Fast404ExceptionHtmlSubscriber.php in core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php

... See full list

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php, line 14

Namespace

Drupal\Core\Cache
View 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

Namesort descending Modifiers Type Description Overrides
CacheTagsInvalidatorInterface::invalidateTags public function Marks cache items with any of the specified tags as invalid.