You are here

public function MigratePrepareRowEvent::__construct in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent::__construct()
  2. 8 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent::__construct()
  3. 8.2 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent::__construct()
  4. 8.3 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent::__construct()

Constructs a prepare-row event object.

Parameters

\Drupal\migrate\Row $row: Row of source data to be analyzed/manipulated.

\Drupal\migrate\Plugin\MigrateSourceInterface $source: Source plugin that is the source of the event.

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

File

src/Event/MigratePrepareRowEvent.php, line 46

Class

MigratePrepareRowEvent
Wraps a prepare-row event for event listeners.

Namespace

Drupal\migrate_plus\Event

Code

public function __construct(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
  $this->row = $row;
  $this->source = $source;
  $this->migration = $migration;
}