public function prepareRow(Row $row) { if ($value = $row->getSourceProperty('beers')) { $row->setSourceProperty('beers', explode('|', $value)); } return parent::prepareRow($row); }
/** * {@inheritdoc} */ public function prepareRow(Row $row) { if (parent::prepareRow($row) === FALSE) { return FALSE; } $terms = $this->select('migrate_example_beer_topic_node', 'bt')->fields('bt', array('style'))->condition('bid', $row->getSourceProperty('bid'))->execute()->fetchCol(); $row->setSourceProperty('terms', $terms); if ($value = $row->getSourceProperty('countries')) { $row->setSourceProperty('countries', explode('|', $value)); } }