public function MigrateImportEvent::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Event/MigrateImportEvent.php \Drupal\migrate\Event\MigrateImportEvent::__construct()
Constructs an import event object.
Parameters
\Drupal\migrate\Entity\MigrationInterface $migration: Migration entity.
File
- core/
modules/ migrate/ src/ Event/ MigrateImportEvent.php, line 31 - Contains \Drupal\migrate\Event\MigrateImportEvent.
Class
- MigrateImportEvent
- Wraps a pre- or post-import event for event listeners.
Namespace
Drupal\migrate\EventCode
public function __construct(MigrationInterface $migration) {
$this->migration = $migration;
}