function EventBase::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::__construct()
  2. 8.9.x core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::__construct()
  3. 11.x core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::__construct()

Constructs a Migrate event object.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration being run.

\Drupal\migrate\MigrateMessageInterface $message: The Migrate message service.

1 method overrides EventBase::__construct()
MigratePreRowSaveEvent::__construct in core/modules/migrate/src/Event/MigratePreRowSaveEvent.php
Constructs a pre-save event object.

File

core/modules/migrate/src/Event/EventBase.php, line 33

Class

EventBase

Namespace

Drupal\migrate\Event

Code

public function __construct(MigrationInterface $migration, MigrateMessageInterface $message) {
    $this->migration = $migration;
    $this->message = $message;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.