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

Breadcrumb

  1. Drupal Core 11.1.x

NodeReference.php

Same filename in this branch
  1. 11.1.x core/modules/migrate_drupal/src/Plugin/migrate/field/d7/NodeReference.php

Namespace

Drupal\migrate_drupal\Plugin\migrate\field\d6

File

core/modules/migrate_drupal/src/Plugin/migrate/field/d6/NodeReference.php

View source
<?php

namespace Drupal\migrate_drupal\Plugin\migrate\field\d6;

// cspell:ignore nodereference
use Drupal\migrate_drupal\Attribute\MigrateField;
use Drupal\migrate_drupal\Plugin\migrate\field\ReferenceBase;

/**
 * MigrateField Plugin for Drupal 6 node reference fields.
 *
 * @internal
 */
class NodeReference extends ReferenceBase {
    
    /**
     * The plugin ID for the reference type migration.
     *
     * @var string
     */
    protected $nodeTypeMigration = 'd6_node_type';
    
    /**
     * {@inheritdoc}
     */
    protected function getEntityTypeMigrationId() {
        return $this->nodeTypeMigration;
    }
    
    /**
     * {@inheritdoc}
     */
    protected function entityId() {
        return 'nid';
    }

}

Classes

Title Deprecated Summary
NodeReference MigrateField Plugin for Drupal 6 node reference fields.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal