You are here

public function FieldInterface::getDataDefinition in Search API 8

Retrieves this field's data definition.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface The data definition object for this field.

Throws

\Drupal\search_api\SearchApiException Thrown if the field's data definition is unknown.

1 method overrides FieldInterface::getDataDefinition()
Field::getDataDefinition in src/Item/Field.php
Retrieves this field's data definition.

File

src/Item/FieldInterface.php, line 246

Class

FieldInterface
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function getDataDefinition();