function 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.

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.