You are here

public function Row::setDestinationProperty in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Row.php \Drupal\migrate\Row::setDestinationProperty()
  2. 9 core/modules/migrate/src/Row.php \Drupal\migrate\Row::setDestinationProperty()

Sets destination properties.

Parameters

string $property: The name of the destination property.

mixed $value: The property value to set on the destination.

File

core/modules/migrate/src/Row.php, line 233

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function setDestinationProperty($property, $value) {
  $this->rawDestination[$property] = $value;
  NestedArray::setValue($this->destination, explode(static::PROPERTY_SEPARATOR, $property), $value, TRUE);
}