You are here

public function MigratePreRowSaveEvent::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Event/MigratePreRowSaveEvent.php \Drupal\migrate\Event\MigratePreRowSaveEvent::__construct()
  2. 9 core/modules/migrate/src/Event/MigratePreRowSaveEvent.php \Drupal\migrate\Event\MigratePreRowSaveEvent::__construct()

Constructs a pre-save event object.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: Migration entity.

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

\Drupal\migrate\Row $row: The current row.

Overrides EventBase::__construct

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

File

core/modules/migrate/src/Event/MigratePreRowSaveEvent.php, line 31

Class

MigratePreRowSaveEvent
Wraps a pre-save event for event listeners.

Namespace

Drupal\migrate\Event

Code

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