function Row::hasDestinationProperty

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasDestinationProperty()
  2. 10 core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasDestinationProperty()
  3. 11.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::hasDestinationProperty()

Tests if destination property exists.

Parameters

array|string $property: An array of properties on the destination.

Return value

bool TRUE if the destination property exists.

File

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

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function hasDestinationProperty($property) {
    return NestedArray::keyExists($this->destination, explode(static::PROPERTY_SEPARATOR, $property));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.