function Row::hasSourceProperty
Same name in other branches
- 8.9.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasSourceProperty()
- 10 core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasSourceProperty()
- 11.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasSourceProperty()
Determines whether a source has a property.
Parameters
string $property: A property on the source.
Return value
bool TRUE if the source has property; FALSE otherwise.
1 call to Row::hasSourceProperty()
- Row::__construct in core/
modules/ migrate/ src/ Row.php - Constructs a \Drupal\migrate\Row object.
File
-
core/
modules/ migrate/ src/ Row.php, line 132
Class
- Row
- Stores a row.
Namespace
Drupal\migrateCode
public function hasSourceProperty($property) {
return NestedArray::keyExists($this->source, explode(static::PROPERTY_SEPARATOR, $property));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.