function TextField::getFieldFormatterMap

Same name in other branches
  1. 8.9.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php \Drupal\text\Plugin\migrate\field\d6\TextField::getFieldFormatterMap()
  2. 8.9.x core/modules/text/src/Plugin/migrate/cckfield/TextField.php \Drupal\text\Plugin\migrate\cckfield\TextField::getFieldFormatterMap()
  3. 10 core/modules/text/src/Plugin/migrate/field/d6/TextField.php \Drupal\text\Plugin\migrate\field\d6\TextField::getFieldFormatterMap()
  4. 11.x core/modules/text/src/Plugin/migrate/field/d6/TextField.php \Drupal\text\Plugin\migrate\field\d6\TextField::getFieldFormatterMap()

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',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.