You are here

public function SearchApiBaseFacetSource::getViewsDisplay in Facets 8

Retrieves the Views entity with the correct display set.

This returns NULL when the facet source is not based on views. If it is, it returns a ViewsExecutable plugin with the correct display already set.

Return value

\Drupal\views\ViewExecutable|null NULL when the view can't be found or loaded, the view with preset display otherwise.

Overrides SearchApiFacetSourceInterface::getViewsDisplay

File

src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php, line 94

Class

SearchApiBaseFacetSource
A base class for Search API facet sources.

Namespace

Drupal\facets\Plugin\facets\facet_source

Code

public function getViewsDisplay() {
  return NULL;
}