function MigrateSourceTestBase::migratePrepareRow

Same name and namespace in other branches
  1. 11.x core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::migratePrepareRow()

Implements hook_migrate_prepare_row().

Attributes

#[Hook('migrate_prepare_row')]

See also

::testSource()

File

core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php, line 227

Class

MigrateSourceTestBase
Base class for tests of Migrate source plugins.

Namespace

Drupal\Tests\migrate\Kernel

Code

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.