You are here

public function SearchApiMigrateSubscriber::onPreMigrate in Multiversion 8

Disable Search API node indexing.

File

src/EventSubscriber/SearchApiMigrateSubscriber.php, line 56

Class

SearchApiMigrateSubscriber
SearchApiMigrateSubscriber class.

Namespace

Drupal\multiversion\EventSubscriber

Code

public function onPreMigrate() {
  $this
    ->indexSetReadOnly(TRUE);
}