protected function ViewsDisplayBase::getView in Search API 8
Retrieves the view this search display is based on.
@returns \Drupal\views\ViewEntityInterface
1 call to ViewsDisplayBase::getView()
- ViewsDisplayBase::calculateDependencies in src/
Plugin/ search_api/ display/ ViewsDisplayBase.php - Calculates dependencies for the configured plugin.
File
- src/
Plugin/ search_api/ display/ ViewsDisplayBase.php, line 101
Class
- ViewsDisplayBase
- Provides a base class for Views displays.
Namespace
Drupal\search_api\Plugin\search_api\displayCode
protected function getView() {
$plugin_definition = $this
->getPluginDefinition();
return $this
->getEntityTypeManager()
->getStorage('view')
->load($plugin_definition['view_id']);
}