function LinkField::getFieldFormatterMap

Same name in this branch
  1. 9 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()
Same name in other branches
  1. 8.9.x core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::getFieldFormatterMap()
  2. 8.9.x core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()
  3. 8.9.x core/modules/link/src/Plugin/migrate/cckfield/LinkField.php \Drupal\link\Plugin\migrate\cckfield\LinkField::getFieldFormatterMap()
  4. 10 core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::getFieldFormatterMap()
  5. 10 core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()
  6. 11.x core/modules/link/src/Plugin/migrate/field/d6/LinkField.php \Drupal\link\Plugin\migrate\field\d6\LinkField::getFieldFormatterMap()
  7. 11.x core/modules/link/src/Plugin/migrate/field/d7/LinkField.php \Drupal\link\Plugin\migrate\field\d7\LinkField::getFieldFormatterMap()

Overrides FieldPluginBase::getFieldFormatterMap

1 method overrides LinkField::getFieldFormatterMap()
LinkField::getFieldFormatterMap in core/modules/link/src/Plugin/migrate/field/d7/LinkField.php
Get a map between D6 formatters and D8 formatters for this field type.

File

core/modules/link/src/Plugin/migrate/field/d6/LinkField.php, line 24

Class

LinkField
Plugin annotation @MigrateField( id = "link", core = {6}, type_map = { "link" = "link", }, source_module = "link", destination_module = "link" )

Namespace

Drupal\link\Plugin\migrate\field\d6

Code

public function getFieldFormatterMap() {
    // See d6_field_formatter_settings.yml and FieldPluginBase
    // alterFieldFormatterMigration().
    return [
        'default' => 'link',
        'plain' => 'link',
        'absolute' => 'link',
        'title_plain' => 'link',
        'url' => 'link',
        'short' => 'link',
        'label' => 'link',
        'separate' => 'link_separate',
    ];
}

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