You are here

public function UnsavedIndexConfiguration::clear in Search API 8

Clears all indexed data from this index and marks it for reindexing.

Throws

\Drupal\search_api\SearchApiException Thrown if the server couldn't be loaded, for example.

Overrides IndexInterface::clear

File

src/UnsavedIndexConfiguration.php, line 606

Class

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

Namespace

Drupal\search_api

Code

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