function MigrateRowDeleteEvent::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/Event/MigrateRowDeleteEvent.php \Drupal\migrate\Event\MigrateRowDeleteEvent::__construct()
  2. 10 core/modules/migrate/src/Event/MigrateRowDeleteEvent.php \Drupal\migrate\Event\MigrateRowDeleteEvent::__construct()
  3. 11.x 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;
}

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