protected function SpellCheck::getCache in Search API Spellcheck 8
Return value
mixed
1 call to SpellCheck::getCache()
- SpellCheck::getCacheKey in src/
Plugin/ views/ area/ SpellCheck.php - Returns a generated cache key (based on the views cache key)
File
- src/
Plugin/ views/ area/ SpellCheck.php, line 83
Class
- SpellCheck
- Provides an area for messages.
Namespace
Drupal\search_api_spellcheck\Plugin\views\areaCode
protected function getCache() {
if (!$this->cache) {
if (!empty($this->live_preview)) {
$this->cache = Views::pluginManager('cache')
->createInstance('none');
}
else {
$this->cache = $this->view->display_handler
->getPlugin('cache');
}
}
return $this->cache;
}