You are here

public function UnsavedIndexConfiguration::discardFieldChanges in Search API 8

Resets the index's fields to the saved state.

Return value

$this

Overrides IndexInterface::discardFieldChanges

File

src/UnsavedIndexConfiguration.php, line 512

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public function discardFieldChanges() {
  $this->entity
    ->discardFieldChanges();
  return $this;
}