public function TextField::getFieldFormatterMap in Drupal 8
Same name in this branch
- 8 core/modules/text/src/Plugin/migrate/cckfield/TextField.php \Drupal\text\Plugin\migrate\cckfield\TextField::getFieldFormatterMap()
- 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/ cckfield/ TextField.php, line 44
Class
- TextField
- Plugin annotation @MigrateCckField( id = "text", type_map = { "text" = "text", "text_long" = "text_long", "text_with_summary" = "text_with_summary" }, core = {6,7}, source_module = "text", destination_module = "text", )
Namespace
Drupal\text\Plugin\migrate\cckfieldCode
public function getFieldFormatterMap() {
return [
'default' => 'text_default',
'trimmed' => 'text_trimmed',
'plain' => 'basic_string',
];
}