You are here

public function SearchApiDisplay::getDisplay in Facets 8

Retrieves the Search API display plugin associated with this facet source.

Return value

\Drupal\search_api\Display\DisplayInterface The Search API display plugin associated with this facet source.

Overrides SearchApiFacetSourceInterface::getDisplay

1 call to SearchApiDisplay::getDisplay()
SearchApiDisplay::calculateDependencies in src/Plugin/facets/facet_source/SearchApiDisplay.php
Calculates dependencies for the configured plugin.

File

src/Plugin/facets/facet_source/SearchApiDisplay.php, line 339

Class

SearchApiDisplay
Provides a facet source based on a Search API display.

Namespace

Drupal\facets\Plugin\facets\facet_source

Code

public function getDisplay() {
  return $this->displayPluginManager
    ->createInstance($this->pluginDefinition['display_id']);
}