You are here

public function Field::__construct in Search API 8

Constructs a Field object.

Parameters

\Drupal\search_api\IndexInterface $index: The field's index.

string $field_identifier: The field's identifier.

File

src/Item/Field.php, line 189

Class

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

Namespace

Drupal\search_api\Item

Code

public function __construct(IndexInterface $index, $field_identifier) {
  $this->index = $index;
  $this->fieldIdentifier = $this->originalFieldIdentifier = $field_identifier;
}