You are here

public function FacetSourcePluginInterface::getDataDefinition in Facets 8

Returns a single field's data definition from the facet source.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface A typed data definition.

1 method overrides FacetSourcePluginInterface::getDataDefinition()
SearchApiDisplay::getDataDefinition in src/Plugin/facets/facet_source/SearchApiDisplay.php
Returns a single field's data definition from the facet source.

File

src/FacetSource/FacetSourcePluginInterface.php, line 106

Class

FacetSourcePluginInterface
Describes a source for facet items.

Namespace

Drupal\facets\FacetSource

Code

public function getDataDefinition($field_name);