function MigrationLookup::skipInvalid

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php \Drupal\migrate\Plugin\migrate\process\MigrationLookup::skipInvalid()
  2. 10 core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php \Drupal\migrate\Plugin\migrate\process\MigrationLookup::skipInvalid()
  3. 11.x core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php \Drupal\migrate\Plugin\migrate\process\MigrationLookup::skipInvalid()

Skips the migration process entirely if the value is invalid.

Parameters

array $value: The incoming value to check.

Throws

\Drupal\migrate\MigrateSkipProcessException

1 call to MigrationLookup::skipInvalid()
MigrationLookup::transform in core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php

File

core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php, line 280

Class

MigrationLookup
Looks up the value of a property based on a previous migration.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

protected function skipInvalid(array $value) {
    if (!array_filter($value, [
        $this,
        'isValid',
    ])) {
        throw new MigrateSkipProcessException();
    }
}

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