public function FieldInstance::prepareRow in Zircon Profile 8
Same name in this branch
- 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstance.php \Drupal\field\Plugin\migrate\source\d6\FieldInstance::prepareRow()
- 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php \Drupal\field\Plugin\migrate\source\d7\FieldInstance::prepareRow()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d6/FieldInstance.php \Drupal\field\Plugin\migrate\source\d6\FieldInstance::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/ d6/ FieldInstance.php, line 59 - Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstance.
Class
- FieldInstance
- Drupal 6 field instances source from database.
Namespace
Drupal\field\Plugin\migrate\source\d6Code
public function prepareRow(Row $row) {
// Unserialize data.
$widget_settings = unserialize($row
->getSourceProperty('widget_settings'));
$display_settings = unserialize($row
->getSourceProperty('display_settings'));
$global_settings = unserialize($row
->getSourceProperty('global_settings'));
$row
->setSourceProperty('widget_settings', $widget_settings);
$row
->setSourceProperty('display_settings', $display_settings);
$row
->setSourceProperty('global_settings', $global_settings);
return parent::prepareRow($row);
}