function NodeReference::getFieldFormatterMap

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d7\NodeReference::getFieldFormatterMap()
  2. 10 core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php \Drupal\migrate_drupal\Plugin\migrate\field\d7\NodeReference::getFieldFormatterMap()

Overrides FieldPluginBase::getFieldFormatterMap

File

core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php, line 46

Class

NodeReference
MigrateField plugin for Drupal 7 node_reference fields.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
    return [
        'node_reference_default' => 'entity_reference_label',
        'node_reference_plain' => 'entity_reference_label',
        'node_reference_nid' => 'entity_reference_entity_id',
        'node_reference_node' => 'entity_reference_entity_view',
        'node_reference_path' => 'entity_reference_label',
    ];
}

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