diff --git a/core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php b/core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php index 1fc3792ea3..c3ee1aecc4 100644 --- a/core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php +++ b/core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php @@ -81,17 +81,7 @@ public function import(Row $row, array $old_destination_id_values = []) { // The search page settings may be for a module not enabled on the // destination so make sure it is enabled for updating search page settings. if ($this->moduleHandler->moduleExists($row->getDestinationProperty('module'))) { - parent::import($row, $old_destination_id_values); - $id = $row->getDestinationProperty('id'); - /** @var \Drupal\search\Entity\SearchPage $search_page */ - $search_page = $this->storage->load($id); - if ($row->getDestinationProperty('status')) { - $search_page->enable()->save(); - } - else { - $search_page->disable()->save(); - } - return [$id]; + return parent::import($row, $old_destination_id_values); } return []; }