You are here

protected function FieldDiscovery::getFieldInstanceStubMigrationDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 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 352

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],
    ],
  ];
}