function EntitySearchPage::import
Same name in other branches
- 9 core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php \Drupal\search\Plugin\migrate\destination\EntitySearchPage::import()
- 8.9.x core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php \Drupal\search\Plugin\migrate\destination\EntitySearchPage::import()
- 11.x core/modules/search/src/Plugin/migrate/destination/EntitySearchPage.php \Drupal\search\Plugin\migrate\destination\EntitySearchPage::import()
Overrides EntityConfigBase::import
File
-
core/
modules/ search/ src/ Plugin/ migrate/ destination/ EntitySearchPage.php, line 80
Class
- EntitySearchPage
- Migrate destination for search page.
Namespace
Drupal\search\Plugin\migrate\destinationCode
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'))) {
return parent::import($row, $old_destination_id_values);
}
$msg = sprintf("Search module '%s' is not enabled on this site.", $row->getDestinationProperty('module'));
throw new MigrateException($msg, 0, NULL, MigrationInterface::MESSAGE_INFORMATIONAL, MigrateIdMapInterface::STATUS_IGNORED);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.