function FieldDiscovery::getFieldInstanceStubMigrationDefinition

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::getFieldInstanceStubMigrationDefinition()
  2. 8.9.x core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::getFieldInstanceStubMigrationDefinition()
  3. 11.x core/modules/migrate_drupal/src/FieldDiscovery.php \Drupal\migrate_drupal\FieldDiscovery::getFieldInstanceStubMigrationDefinition()

Provides the stub migration definition for a given Drupal core version.

Parameters

string $core: The Drupal core version.

Return value

array The stub migration definition.

2 calls to FieldDiscovery::getFieldInstanceStubMigrationDefinition()
FieldDiscovery::getSourcePlugin in core/modules/migrate_drupal/src/FieldDiscovery.php
Gets the source plugin to use to gather field information.
FieldDiscoveryTestClass::getFieldInstanceStubMigrationDefinition in core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php
Provides the stub migration definition for a given Drupal core version.
1 method overrides FieldDiscovery::getFieldInstanceStubMigrationDefinition()
FieldDiscoveryTestClass::getFieldInstanceStubMigrationDefinition in core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php
Provides the stub migration definition for a given Drupal core version.

File

core/modules/migrate_drupal/src/FieldDiscovery.php, line 311

Class

FieldDiscovery
Provides field discovery for Drupal 6 & 7 migrations.

Namespace

Drupal\migrate_drupal

Code

protected function getFieldInstanceStubMigrationDefinition($core) {
    return [
        'destination' => [
            'plugin' => 'null',
        ],
        'idMap' => [
            'plugin' => 'null',
        ],
        'source' => [
            'ignore_map' => TRUE,
            'plugin' => $this->sourcePluginIds[$core],
        ],
    ];
}

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