You are here

protected function MigrateExecutable::getEventDispatcher in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getEventDispatcher()

Gets the event dispatcher.

Return value

\Symfony\Component\EventDispatcher\EventDispatcherInterface

File

core/modules/migrate/src/MigrateExecutable.php, line 165
Contains \Drupal\migrate\MigrateExecutable.

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

protected function getEventDispatcher() {
  if (!$this->eventDispatcher) {
    $this->eventDispatcher = \Drupal::service('event_dispatcher');
  }
  return $this->eventDispatcher;
}