You are here

public function SkipOnEmpty::row in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php \Drupal\migrate\Plugin\migrate\process\SkipOnEmpty::row()

File

core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php, line 28
Contains \Drupal\migrate\Plugin\migrate\process\SkipOnEmpty.

Class

SkipOnEmpty
If the source evaluates to empty, we skip processing or the whole row.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

public function row($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
  if (!$value) {
    throw new MigrateSkipRowException();
  }
  return $value;
}