You are here

protected function SearchApiCachePluginTrait::getView in Search API 8

Retrieves the view to which this plugin belongs.

Return value

\Drupal\views\ViewExecutable The view.

3 calls to SearchApiCachePluginTrait::getView()
SearchApiCachePluginTrait::cacheGet in src/Plugin/views/cache/SearchApiCachePluginTrait.php
SearchApiCachePluginTrait::cacheSet in src/Plugin/views/cache/SearchApiCachePluginTrait.php
SearchApiCachePluginTrait::generateResultsKey in src/Plugin/views/cache/SearchApiCachePluginTrait.php

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\cache

Code

protected function getView() {
  return $this->view;
}