You are here

public function SearchApiDisplay::isRenderedInCurrentRequest in Facets 8

Returns true if the Facet source is being rendered in the current request.

This function will define if all facets for this facet source are shown when facet source visibility: "being rendered" is configured in the facet visibility settings.

Return value

bool True when the facet is rendered on the same page.

Overrides FacetSourcePluginBase::isRenderedInCurrentRequest

File

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

Class

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

Namespace

Drupal\facets\Plugin\facets\facet_source

Code

public function isRenderedInCurrentRequest() {
  return $this
    ->getDisplay()
    ->isRenderedInCurrentRequest();
}