You are here

public function MigrateExecutable::onPostRowDelete in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostRowDelete()
  2. 8.2 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostRowDelete()
  3. 8.3 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostRowDelete()
  4. 8.4 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::onPostRowDelete()

React to item rollback.

Parameters

\Drupal\migrate\Event\MigrateRowDeleteEvent $event: The post-save event.

File

src/MigrateExecutable.php, line 355

Class

MigrateExecutable
Defines a migrate executable class for drush.

Namespace

Drupal\migrate_tools

Code

public function onPostRowDelete(MigrateRowDeleteEvent $event) {
  if ($this->feedback && $this->deleteCounter && $this->deleteCounter % $this->feedback == 0) {
    $this
      ->rollbackMessage(FALSE);
    $this
      ->resetCounters();
  }
}