class MigrateSkipAllRowsTestHooks

Hook implementations for migrate_skip_all_rows_test.

Hierarchy

Expanded class hierarchy of MigrateSkipAllRowsTestHooks

File

core/modules/migrate/tests/modules/migrate_skip_all_rows_test/src/Hook/MigrateSkipAllRowsTestHooks.php, line 16

Namespace

Drupal\migrate_skip_all_rows_test\Hook
View source
class MigrateSkipAllRowsTestHooks {
    
    /**
     * Implements hook_migrate_prepare_row().
     */
    public function migratePrepareRow(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
        if (\Drupal::state()->get('migrate_skip_all_rows_test_migrate_prepare_row')) {
            throw new MigrateSkipRowException();
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
MigrateSkipAllRowsTestHooks::migratePrepareRow public function Implements hook_migrate_prepare_row().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.