You are here

public function SearchApiCachePluginTrait::setCacheBackend in Search API 8

Sets the cache backend.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The new cache backend.

Return value

$this

File

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

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 setCacheBackend(CacheBackendInterface $cache_backend) {
  $this->cacheBackend = $cache_backend;
  return $this;
}