RangeField.php in Range 8
File
src/Plugin/migrate/process/d6/RangeField.php
View source
<?php
namespace Drupal\range\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
class RangeField extends ProcessPluginBase {
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;
}
}