public function FractionField::getFieldFormatterMap in Fraction 8
Same name and namespace in other branches
- 2.x src/Plugin/migrate/field/d7/FractionField.php \Drupal\fraction\Plugin\migrate\field\d7\FractionField::getFieldFormatterMap()
Get a map between D6 formatters and D8 formatters for this field type.
This is used by static::alterFieldFormatterMigration() in the base class.
Return value
array The keys are D6 formatters and the values are D8 formatters.
Overrides FieldPluginBase::getFieldFormatterMap
File
- src/
Plugin/ migrate/ field/ d7/ FractionField.php, line 33
Class
- FractionField
- Migrate from d7 fraction structure.
Namespace
Drupal\fraction\Plugin\migrate\field\d7Code
public function getFieldFormatterMap() {
return [
'fraction_default' => 'fraction',
'fraction_decimal' => 'fraction_decimal',
'fraction_percentage' => 'fraction_percentage',
];
}