You are here

public function Field::wasRenamed in Search API 8

Determines whether this field's identifier was changed in this request.

Return value

bool TRUE if the field identifier of this field object was changed after its creation, FALSE otherwise.

Overrides FieldInterface::wasRenamed

File

src/Item/Field.php, line 292

Class

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

Namespace

Drupal\search_api\Item

Code

public function wasRenamed() {
  return $this->fieldIdentifier != $this->originalFieldIdentifier;
}