You are here

public function EventBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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 call to EventBase::__construct()
MigratePreRowSaveEvent::__construct in core/modules/migrate/src/Event/MigratePreRowSaveEvent.php
Constructs a pre-save event object.
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;
}