function MigratePreRowSaveEvent::__construct

Same name and namespace in other branches
  1. 11.x 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.

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;
}

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