You are here

public function Index::discardFieldChanges in Search API 8

Resets the index's fields to the saved state.

Return value

$this

Overrides IndexInterface::discardFieldChanges

File

src/Entity/Index.php, line 824

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function discardFieldChanges() {
  $this->fieldInstances = NULL;
  return $this;
}