You are here

public function Field::setFieldIdentifier in Search API 8

Sets a new field identifier for this field.

@internal Use \Drupal\search_api\IndexInterface::renameField() instead.

Parameters

string $field_id: The new identifier of the field.

Return value

$this

Overrides FieldInterface::setFieldIdentifier

File

src/Item/Field.php, line 284

Class

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

Namespace

Drupal\search_api\Item

Code

public function setFieldIdentifier($field_id) {
  $this->fieldIdentifier = $field_id;
  return $this;
}