function MigrateSkipAllRowsTestHooks::migratePrepareRow
Implements hook_migrate_prepare_row().
File
-
core/
modules/ migrate/ tests/ modules/ migrate_skip_all_rows_test/ src/ Hook/ MigrateSkipAllRowsTestHooks.php, line 21
Class
- MigrateSkipAllRowsTestHooks
- Hook implementations for migrate_skip_all_rows_test.
Namespace
Drupal\migrate_skip_all_rows_test\HookCode
public function migratePrepareRow(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
if (\Drupal::state()->get('migrate_skip_all_rows_test_migrate_prepare_row')) {
throw new MigrateSkipRowException();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.