protected function SkipOnValue::compareValue in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 src/Plugin/migrate/process/SkipOnValue.php \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue::compareValue()
- 8.2 src/Plugin/migrate/process/SkipOnValue.php \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue::compareValue()
- 8.3 src/Plugin/migrate/process/SkipOnValue.php \Drupal\migrate_plus\Plugin\migrate\process\SkipOnValue::compareValue()
Compare values to see if they are equal.
Parameters
mixed $value: Actual value.
mixed $skipValue: Value to compare against.
bool $equal: Compare as equal or not equal.
Return value
bool True if the compare successfully, FALSE otherwise.
2 calls to SkipOnValue::compareValue()
- SkipOnValue::process in src/
Plugin/ migrate/ process/ SkipOnValue.php - SkipOnValue::row in src/
Plugin/ migrate/ process/ SkipOnValue.php
File
- src/
Plugin/ migrate/ process/ SkipOnValue.php, line 128
Class
- SkipOnValue
- If the source evaluates to a configured value, skip processing or whole row.
Namespace
Drupal\migrate_plus\Plugin\migrate\processCode
protected function compareValue($value, $skipValue, $equal = TRUE) {
if ($equal) {
return (string) $value == (string) $skipValue;
}
return (string) $value != (string) $skipValue;
}