public function FieldInstancePerFormDisplay::prepareRow in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerFormDisplay::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/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstancePerFormDisplay.php, line 45 - Contains \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerFormDisplay.
Class
- FieldInstancePerFormDisplay
- The field instance per form display source class.
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function prepareRow(Row $row) {
$data = unserialize($row
->getSourceProperty('data'));
$row
->setSourceProperty('widget', $data['widget']);
$row
->setSourceProperty('widget_settings', $data['widget']['settings']);
return parent::prepareRow($row);
}