You are here

protected function MigrationImportSync::dispatchRowDeleteEvent in Migrate Tools 8.4

Same name and namespace in other branches
  1. 8.5 src/EventSubscriber/MigrationImportSync.php \Drupal\migrate_tools\EventSubscriber\MigrationImportSync::dispatchRowDeleteEvent()

Dispatches MigrateRowDeleteEvent event.

Parameters

string $event_name: The event name to dispatch.

\Drupal\migrate\Plugin\MigrationInterface $migration: The active migration.

array $destination_ids: The destination identifier values of the record.

1 call to MigrationImportSync::dispatchRowDeleteEvent()
MigrationImportSync::sync in src/EventSubscriber/MigrationImportSync.php
Event callback to sync source and destination.

File

src/EventSubscriber/MigrationImportSync.php, line 91

Class

MigrationImportSync
Import and sync source and destination.

Namespace

Drupal\migrate_tools\EventSubscriber

Code

protected function dispatchRowDeleteEvent($event_name, MigrationInterface $migration, array $destination_ids) {

  // Symfony changing dispatcher so implementation could change.
  $this->dispatcher
    ->dispatch($event_name, new MigrateRowDeleteEvent($migration, $destination_ids));
}