You are here

public function IndexInterface::getField in Search API 8

Returns a field from this index.

Parameters

string $field_id: The field identifier.

Return value

\Drupal\search_api\Item\FieldInterface|null The field with the given field identifier, or NULL if there is no such field.

2 methods override IndexInterface::getField()
Index::getField in src/Entity/Index.php
Returns a field from this index.
UnsavedIndexConfiguration::getField in src/UnsavedIndexConfiguration.php
Returns a field from this index.

File

src/IndexInterface.php, line 498

Class

IndexInterface
Defines the interface for index entities.

Namespace

Drupal\search_api

Code

public function getField($field_id);