W3cubDocs

/Drupal 8

public function RefinableCacheableDependencyInterface::addCacheTags

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

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!RefinableCacheableDependencyInterface.php/function/RefinableCacheableDependencyInterface::addCacheTags/8.1.x