You are here

public function TextField::getFieldFormatterMap in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/text/src/Plugin/migrate/cckfield/TextField.php \Drupal\text\Plugin\migrate\cckfield\TextField::getFieldFormatterMap()

Get a map between D6 formatters and D8 formatters for this field type.

This is used by static::processFieldFormatter() in the base class.

Return value

array The keys are D6 formatters and the values are D8 formatters.

Overrides MigrateCckFieldInterface::getFieldFormatterMap

File

core/modules/text/src/Plugin/migrate/cckfield/TextField.php, line 33
Contains \Drupal\text\Plugin\migrate\cckfield\TextField.

Class

TextField
Plugin annotation @MigrateCckField( id = "text" )

Namespace

Drupal\text\Plugin\migrate\cckfield

Code

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