You are here

public function TelephoneField::getFieldFormatterMap in Drupal 9

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/TelephoneField.php, line 29

Class

TelephoneField
Plugin annotation @MigrateField( id = "telephone", core = {7}, source_module = "telephone", destination_module = "telephone" )

Namespace

Drupal\telephone\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
  return [
    'text_plain' => 'string',
    'telephone_link' => 'telephone_link',
  ];
}