You are here

public function ArrayObject::addCacheTags in Express 8

Adds cache tags.

Parameters

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

Return value

$this

Overrides RefinableCacheableDependencyInterface::addCacheTags

File

themes/contrib/bootstrap/src/Utility/ArrayObject.php, line 108
Contains \Drupal\bootstrap\Utility\ArrayObject.

Class

ArrayObject
Custom ArrayObject implementation.

Namespace

Drupal\bootstrap\Utility

Code

public function addCacheTags(array $cache_tags) {
  BubbleableMetadata::createFromRenderArray($this->array)
    ->addCacheTags($cache_tags)
    ->applyTo($this->array);
  return $this;
}