protected function MigrateExecutable::getEventDispatcher in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getEventDispatcher()
- 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getEventDispatcher()
Gets the event dispatcher.
Return value
\Symfony\Contracts\EventDispatcher\EventDispatcherInterface
2 calls to MigrateExecutable::getEventDispatcher()
- MigrateExecutable::import in core/
modules/ migrate/ src/ MigrateExecutable.php - Performs an import operation - migrate items from source to destination.
- MigrateExecutable::rollback in core/
modules/ migrate/ src/ MigrateExecutable.php - Performs a rollback operation - remove previously-imported items.
File
- core/
modules/ migrate/ src/ MigrateExecutable.php, line 138
Class
- MigrateExecutable
- Defines a migrate executable class.
Namespace
Drupal\migrateCode
protected function getEventDispatcher() {
if (!$this->eventDispatcher) {
$this->eventDispatcher = \Drupal::service('event_dispatcher');
}
return $this->eventDispatcher;
}