function CacheTagsInvalidatorInterface::invalidateTags

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface::invalidateTags()
  2. 10 core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface::invalidateTags()
  3. 11.x core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php \Drupal\Core\Cache\CacheTagsInvalidatorInterface::invalidateTags()

Marks cache items with any of the specified tags as invalid.

Parameters

string[] $tags: The list of tags for which to invalidate cache items.

4 methods override CacheTagsInvalidatorInterface::invalidateTags()
BackendChain::invalidateTags in core/lib/Drupal/Core/Cache/BackendChain.php
Marks cache items with any of the specified tags as invalid.
CacheTagsInvalidator::invalidateTags in core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php
Marks cache items with any of the specified tags as invalid.
ChainedFastBackend::invalidateTags in core/lib/Drupal/Core/Cache/ChainedFastBackend.php
Marks cache items with any of the specified tags as invalid.
MemoryBackend::invalidateTags in core/lib/Drupal/Core/Cache/MemoryBackend.php
Marks cache items with any of the specified tags as invalid.

File

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

Class

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

Namespace

Drupal\Core\Cache

Code

public function invalidateTags(array $tags);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.