You are here

public function SkipOnEmpty::process 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::process()

File

core/modules/migrate/src/Plugin/migrate/process/SkipOnEmpty.php, line 38
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 process($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
  if (!$value) {
    throw new MigrateSkipProcessException();
  }
  return $value;
}