function MigrateSkipAllRowsTestHooks::migratePrepareRow
Same name and namespace in other branches
- 11.x core/modules/migrate/tests/modules/migrate_skip_all_rows_test/src/Hook/MigrateSkipAllRowsTestHooks.php \Drupal\migrate_skip_all_rows_test\Hook\MigrateSkipAllRowsTestHooks::migratePrepareRow()
Implements hook_migrate_prepare_row().
Attributes
#[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) : void {
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.