public function Row::hasSourceProperty in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasSourceProperty()
- 9 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.
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));
}