function VariableMultiRow::prepareRow

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow::prepareRow()
  2. 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow::prepareRow()
  3. 10 core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow::prepareRow()

Overrides SourcePluginBase::prepareRow

File

core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php, line 67

Class

VariableMultiRow
Drupal 6/7 multiple variables source from database.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

public function prepareRow(Row $row) {
    if ($value = $row->getSourceProperty('value')) {
        $row->setSourceProperty('value', unserialize($value));
    }
    return parent::prepareRow($row);
}

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