You are here

public function LinkField::getFieldFormatterMap in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/link/src/Plugin/migrate/cckfield/LinkField.php \Drupal\link\Plugin\migrate\cckfield\LinkField::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/link/src/Plugin/migrate/cckfield/LinkField.php, line 23
Contains \Drupal\link\Plugin\migrate\cckfield\LinkField.

Class

LinkField
Plugin annotation @MigrateCckField( id = "link" )

Namespace

Drupal\link\Plugin\migrate\cckfield

Code

public function getFieldFormatterMap() {

  // See d6_field_formatter_settings.yml and CckFieldPluginBase
  // processFieldFormatter().
  return [
    'default' => 'link',
    'plain' => 'link',
    'absolute' => 'link',
    'title_plain' => 'link',
    'url' => 'link',
    'short' => 'link',
    'label' => 'link',
    'separate' => 'link_separate',
  ];
}