public function SearchApiCachePluginTrait::getCacheContextsManager in Search API 8
Retrieves the cache contexts manager.
Return value
\Drupal\Core\Cache\Context\CacheContextsManager The cache contexts manager.
File
- src/
Plugin/ views/ cache/ SearchApiCachePluginTrait.php, line 68
Class
- SearchApiCachePluginTrait
- Provides a trait to use in Views cache plugins for Search API queries.
Namespace
Drupal\search_api\Plugin\views\cacheCode
public function getCacheContextsManager() {
return $this->cacheContextsManager ?: \Drupal::service('cache_contexts_manager');
}