You are here

public function VariableMultiRow::prepareRow in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow::prepareRow()

Add additional data to the row.

Parameters

\Drupal\Migrate\Row $row: The row object.

Return value

bool FALSE if this row needs to be skipped.

Overrides SourcePluginBase::prepareRow

File

core/modules/migrate_drupal/src/Plugin/migrate/source/VariableMultiRow.php, line 47
Contains \Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow.

Class

VariableMultiRow
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);
}