public function RangeField::transform in Range 8
Get the range field data.
Overrides ProcessPluginBase::transform
File
- src/
Plugin/ migrate/ process/ d6/ RangeField.php, line 24
Class
- RangeField
- Get the range field data.
Namespace
Drupal\range\Plugin\migrate\process\d6Code
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
$return = [];
foreach ($value as $v) {
$return[] = [
'from' => $v['value'],
'to' => $v['value'],
];
}
return $return;
}