function RefinableCacheableDependencyInterface::addCacheTags

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

Adds cache tags.

Parameters

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

Return value

$this

1 method overrides RefinableCacheableDependencyInterface::addCacheTags()
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);

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