You are here

public function UnsavedIndexConfiguration::addCacheTags in Search API 8

Adds cache tags.

Parameters

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

Return value

$this

Overrides RefinableCacheableDependencyInterface::addCacheTags

File

src/UnsavedIndexConfiguration.php, line 1058

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function addCacheTags(array $cache_tags) {
  $this->entity
    ->addCacheTags($cache_tags);
  return $this;
}