Same filename and directory in other branches
  1. 8.9.x core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php
  2. 9 core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php

Namespace

Drupal\Core\Cache

File

core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php
View source
<?php

namespace Drupal\Core\Cache;


/**
 * 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.
 *
 * @ingroup cache
 */
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);

}

Interfaces

Namesort descending Description
CacheTagsInvalidatorInterface Defines required methods for classes wanting to handle cache tag changes.