function UserReference::getFieldFormatterMap

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

Overrides FieldPluginBase::getFieldFormatterMap

File

core/modules/migrate_drupal/src/Plugin/migrate/field/d7/UserReference.php, line 47

Class

UserReference
MigrateField plugin for Drupal 7 user_reference fields.

Namespace

Drupal\migrate_drupal\Plugin\migrate\field\d7

Code

public function getFieldFormatterMap() {
    return [
        'user_reference_default' => 'entity_reference_label',
        'user_reference_plain' => 'entity_reference_label',
        'user_reference_uid' => 'entity_reference_entity_id',
        'user_reference_user' => 'entity_reference_entity_view',
        'user_reference_path' => 'entity_reference_label',
    ];
}

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