You are here

public function Target::destroyIndex in Drupal 7 to 8/9 Module Upgrader 8

Destroys all index data for this target.

File

src/Target.php, line 176

Class

Target
Default implementation of TargetInterface.

Namespace

Drupal\drupalmoduleupgrader

Code

public function destroyIndex() {
  $indexers = array_keys($this->indexerManager
    ->getDefinitions());
  foreach ($indexers as $id) {
    $this
      ->getIndexer($id)
      ->destroy();
  }
}