You are here

public function FacetSourcePluginBase::getFields in Facets 8

Returns an array of fields that are defined on the facet source.

This returns an array of fields that are defined on the source. This array is keyed by the field's machine name and has values of the field's label.

Return value

array An array of available fields.

Overrides FacetSourcePluginInterface::getFields

2 methods override FacetSourcePluginBase::getFields()
SearchApiBaseFacetSource::getFields in src/Plugin/facets/facet_source/SearchApiBaseFacetSource.php
Returns an array of fields that are defined on the facet source.
SearchApiDisplay::getFields in src/Plugin/facets/facet_source/SearchApiDisplay.php
Returns an array of fields that are defined on the facet source.

File

src/FacetSource/FacetSourcePluginBase.php, line 86

Class

FacetSourcePluginBase
Defines a base class from which other facet sources may extend.

Namespace

Drupal\facets\FacetSource

Code

public function getFields() {
  return [];
}