Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / migrate / src / Row.php
index 95e7f28a0f6eda22adcea02666fb43fbeb12a5cb..83e97b130d8e062e31d17c442e4d44e29b598960 100644 (file)
@@ -77,6 +77,13 @@ class Row {
    */
   protected $isStub = FALSE;
 
+  /**
+   * The empty destination properties.
+   *
+   * @var array
+   */
+  protected $emptyDestinationProperties = [];
+
   /**
    * Constructs a \Drupal\Migrate\Row object.
    *
@@ -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.
    *