You are here

public function FractionField::getFieldWidgetMap in Fraction 8

Same name and namespace in other branches
  1. 2.x src/Plugin/migrate/field/d7/FractionField.php \Drupal\fraction\Plugin\migrate\field\d7\FractionField::getFieldWidgetMap()

Get a map between D6 and D8 widgets for this field type.

Return value

array The keys are D6 field widget types and the values D8 widgets.

Overrides FieldPluginBase::getFieldWidgetMap

File

src/Plugin/migrate/field/d7/FractionField.php, line 22

Class

FractionField
Migrate from d7 fraction structure.

Namespace

Drupal\fraction\Plugin\migrate\field\d7

Code

public function getFieldWidgetMap() {
  return [
    'fraction_default' => 'fraction',
    'fraction_decimal' => 'fraction_decimal',
    'fraction_percentage' => 'fraction_percentage',
  ];
}