Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -77,6 +77,13 @@ class Row {
|
|||
*/
|
||||
protected $isStub = FALSE;
|
||||
|
||||
/**
|
||||
* The empty destination properties.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $emptyDestinationProperties = [];
|
||||
|
||||
/**
|
||||
* Constructs a \Drupal\Migrate\Row object.
|
||||
*
|
||||
|
@ -97,7 +104,7 @@ class Row {
|
|||
$this->isStub = $is_stub;
|
||||
foreach (array_keys($source_ids) as $id) {
|
||||
if (!$this->hasSourceProperty($id)) {
|
||||
throw new \InvalidArgumentException("$id has no value");
|
||||
throw new \InvalidArgumentException("$id is defined as a source ID but has no value.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -229,6 +236,26 @@ class Row {
|
|||
NestedArray::unsetValue($this->destination, explode(static::PROPERTY_SEPARATOR, $property));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a destination to be empty.
|
||||
*
|
||||
* @param string $property
|
||||
* The destination property.
|
||||
*/
|
||||
public function setEmptyDestinationProperty($property) {
|
||||
$this->emptyDestinationProperties[] = $property;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the empty destination properties.
|
||||
*
|
||||
* @return array
|
||||
* An array of destination properties.
|
||||
*/
|
||||
public function getEmptyDestinationProperties() {
|
||||
return $this->emptyDestinationProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the whole destination array.
|
||||
*
|
||||
|
|
Reference in a new issue