Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

EntityReference.php

Same filename in this branch
  1. 11.1.x core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
  2. 11.1.x core/modules/views/src/Plugin/views/filter/EntityReference.php
  3. 11.1.x core/modules/views/src/Plugin/views/display/EntityReference.php
  4. 11.1.x core/modules/views/src/Plugin/views/row/EntityReference.php
  5. 11.1.x core/modules/views/src/Plugin/views/style/EntityReference.php

Namespace

Drupal\field\Plugin\migrate\field\d7

File

core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php

View source
<?php

namespace Drupal\field\Plugin\migrate\field\d7;

use Drupal\migrate_drupal\Attribute\MigrateField;
use Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase;
// cspell:ignore entityreference

/**
 * MigrateField plugin for Drupal 7 entity_reference fields.
 */
class EntityReference extends FieldPluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function getFieldFormatterMap() {
        return [
            'entityreference_label' => 'entity_reference_label',
            'entityreference_entity_id' => 'entity_reference_entity_id',
            'entityreference_entity_view' => 'entity_reference_entity_view',
        ];
    }

}

Classes

Title Deprecated Summary
EntityReference MigrateField plugin for Drupal 7 entity_reference fields.
RSS feed
Powered by Drupal