You are here

public function JsonApiFacets::isRenderedInCurrentRequest in JSON:API Search API 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

modules/jsonapi_search_api_facets/src/Plugin/facets/facet_source/JsonApiFacets.php, line 147

Class

JsonApiFacets
Provides a facet source for use in JSON:API.

Namespace

Drupal\jsonapi_search_api_facets\Plugin\facets\facet_source

Code

public function isRenderedInCurrentRequest() {
  return TRUE;
}