Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Cache / CacheTagsInvalidatorInterface.php
1 <?php
2
3 namespace Drupal\Core\Cache;
4
5 /**
6  * Defines required methods for classes wanting to handle cache tag changes.
7  *
8  * Services that implement this interface must add the cache_tags_invalidator
9  * tag to be notified. Cache backends may implement this interface as well, they
10  * will be notified automatically.
11  *
12  * @ingroup cache
13  */
14 interface CacheTagsInvalidatorInterface {
15
16   /**
17    * Marks cache items with any of the specified tags as invalid.
18    *
19    * @param string[] $tags
20    *   The list of tags for which to invalidate cache items.
21    */
22   public function invalidateTags(array $tags);
23
24 }