public function PhoneField::getFieldFormatterMap in Drupal 8
Same name and namespace in other branches
- 9 core/modules/telephone/src/Plugin/migrate/field/d7/PhoneField.php \Drupal\telephone\Plugin\migrate\field\d7\PhoneField::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
- core/
modules/ telephone/ src/ Plugin/ migrate/ field/ d7/ PhoneField.php, line 23
Class
- PhoneField
- Plugin annotation @MigrateField( id = "phone", type_map = { "phone" = "telephone", }, core = {7}, source_module = "phone", destination_module = "telephone" )
Namespace
Drupal\telephone\Plugin\migrate\field\d7Code
public function getFieldFormatterMap() {
return [
'phone' => 'basic_string',
];
}