public function MigrateExecutable::onPostImport in Migrate Tools 8.3
Same name and namespace in other branches
- 8.5 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostImport()
- 8 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostImport()
- 8.2 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostImport()
- 8.4 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostImport()
React to migration completion.
Parameters
\Drupal\migrate\Event\MigrateImportEvent $event: The map event.
File
- src/
MigrateExecutable.php, line 221
Class
Namespace
Drupal\migrate_toolsCode
public function onPostImport(MigrateImportEvent $event) {
$migrate_last_imported_store = \Drupal::keyValue('migrate_last_imported');
$migrate_last_imported_store
->set($event
->getMigration()
->id(), round(microtime(TRUE) * 1000));
$this
->progressMessage();
$this
->removeListeners();
}