You are here

public function SearchApiCachePluginTrait::setCacheContextsManager in Search API 8

Sets the cache contexts manager.

Parameters

\Drupal\Core\Cache\Context\CacheContextsManager $cache_contexts_manager: The new cache contexts manager.

Return value

$this

File

src/Plugin/views/cache/SearchApiCachePluginTrait.php, line 80

Class

SearchApiCachePluginTrait
Provides a trait to use in Views cache plugins for Search API queries.

Namespace

Drupal\search_api\Plugin\views\cache

Code

public function setCacheContextsManager(CacheContextsManager $cache_contexts_manager) {
  $this->cacheContextsManager = $cache_contexts_manager;
  return $this;
}