You are here

public function Facet::getDataDefinition in Facets 8

Returns the data definition from the facet field.

Return value

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

Overrides FacetInterface::getDataDefinition

File

src/Entity/Facet.php, line 611

Class

Facet
Defines the facet configuration entity.

Namespace

Drupal\facets\Entity

Code

public function getDataDefinition() {
  return $this
    ->getFacetSource()
    ->getDataDefinition($this->field_identifier);
}