You are here

public function TextField::getFieldFormatterMap in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/text/src/Plugin/migrate/field/d6/TextField.php \Drupal\text\Plugin\migrate\field\d6\TextField::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/text/src/Plugin/migrate/field/d6/TextField.php, line 38

Class

TextField
Plugin annotation @MigrateField( id = "d6_text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {6}, source_module = "text", destination_module = "text", )

Namespace

Drupal\text\Plugin\migrate\field\d6

Code

public function getFieldFormatterMap() {
  return [
    'default' => 'text_default',
    'trimmed' => 'text_trimmed',
    'plain' => 'basic_string',
  ];
}