8.3.x RefinableCacheableDependencyInterface.php public RefinableCacheableDependencyInterface::addCacheTags(array $cache_tags)
8.0.x RefinableCacheableDependencyInterface.php public RefinableCacheableDependencyInterface::addCacheTags(array $cache_tags)
8.1.x RefinableCacheableDependencyInterface.php public RefinableCacheableDependencyInterface::addCacheTags(array $cache_tags)
8.2.x RefinableCacheableDependencyInterface.php public RefinableCacheableDependencyInterface::addCacheTags(array $cache_tags)
8.4.x RefinableCacheableDependencyInterface.php public RefinableCacheableDependencyInterface::addCacheTags(array $cache_tags)

Adds cache tags.

Parameters

string[] $cache_tags: The cache tags to be added.

Return value

$this

Overrides RefinableCacheableDependencyInterface::addCacheTags

3 methods override RefinableCacheableDependencyInterface::addCacheTags()
RefinableCacheableDependencyInterface::addCacheTags in core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php
Adds cache tags.
RefinableCacheableDependencyTrait::addCacheTags in core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php
Adds cache tags.
ViewUI::addCacheTags in core/modules/views_ui/src/ViewUI.php
Adds cache tags.

File

core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php, line 33

Class

RefinableCacheableDependencyInterface
Allows to add cacheability metadata to an object for the current runtime.

Namespace

Drupal\Core\Cache

Code

public function addCacheTags(array $cache_tags);