You are here

public function RangeFieldInstanceWidgetSettings::transform in Range 8

Get the range field widget settings.

Overrides ProcessPluginBase::transform

File

src/Plugin/migrate/process/d7/RangeFieldInstanceWidgetSettings.php, line 24

Class

RangeFieldInstanceWidgetSettings
Get the range field instance widget settings.

Namespace

Drupal\range\Plugin\migrate\process\d7

Code

public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
  return [
    'label' => [
      'from' => $value['from']['label'],
      'to' => $value['to']['label'],
    ],
    'placeholder' => [
      'from' => '',
      'to' => '',
    ],
  ];
}