protected function MigrationLookup::isValid in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php \Drupal\migrate\Plugin\migrate\process\MigrationLookup::isValid()
Determines if the value is valid for lookup.
The only values considered invalid are: NULL, FALSE, [] and "".
Parameters
string $value: The value to test.
Return value
bool Return true if the value is valid.
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ process/ MigrationLookup.php, line 297
Class
- MigrationLookup
- Looks up the value of a property based on a previous migration.
Namespace
Drupal\migrate\Plugin\migrate\processCode
protected function isValid($value) {
return !in_array($value, [
NULL,
FALSE,
[],
"",
], TRUE);
}