function FieldInstanceWidgetSettings::transform

Same name in other branches
  1. 9 core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php \Drupal\field\Plugin\migrate\process\d6\FieldInstanceWidgetSettings::transform()
  2. 8.9.x core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php \Drupal\field\Plugin\migrate\process\d6\FieldInstanceWidgetSettings::transform()
  3. 11.x core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php \Drupal\field\Plugin\migrate\process\d6\FieldInstanceWidgetSettings::transform()

Get the field instance default/mapped widget settings.

Overrides ProcessPluginBase::transform

File

core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceWidgetSettings.php, line 23

Class

FieldInstanceWidgetSettings
Get the field instance widget settings.

Namespace

Drupal\field\Plugin\migrate\process\d6

Code

public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    [
        $widget_type,
        $widget_settings,
    ] = $value;
    return $this->getSettings($widget_type, $widget_settings);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.