You are here

public function Row::getSourceProperty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Row.php \Drupal\migrate\Row::getSourceProperty()

Retrieves a source property.

Parameters

string $property: A property on the source.

Return value

mixed|null The found returned property or NULL if not found.

File

core/modules/migrate/src/Row.php, line 142
Contains \Drupal\migrate\Row.

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function getSourceProperty($property) {
  $return = NestedArray::getValue($this->source, explode(static::PROPERTY_SEPARATOR, $property), $key_exists);
  if ($key_exists) {
    return $return;
  }
}