You are here

public function MigrateRowDeleteEvent::__construct in Drupal 10

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

Constructs a row deletion event object.

Parameters

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

array $destination_id_values: Values represent the destination ID.

File

core/modules/migrate/src/Event/MigrateRowDeleteEvent.php, line 35

Class

MigrateRowDeleteEvent
Wraps a row deletion event for event listeners.

Namespace

Drupal\migrate\Event

Code

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