diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/LinkField.php b/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/LinkField.php index 2795624..d891dad 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/LinkField.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/cckfield/LinkField.php @@ -2,13 +2,12 @@ /** * @file - * Contains + * Contains Drupal\migrate_drupal\Plugin\migrate\cckfield\LinkField; */ namespace Drupal\migrate_drupal\Plugin\migrate\cckfield; use Drupal\migrate\Entity\MigrationInterface; -use Drupal\migrate_drupal\Plugin\migrate\cckfield\CckFieldPluginBase; /** * @PluginID("link") @@ -18,24 +17,6 @@ class LinkField extends CckFieldPluginBase { /** * {@inheritdoc} */ - public function processField(MigrationInterface $migration) { - // See d6_field.yml. - $process[0]['map'][$this->pluginId][$this->pluginId] = 'link'; - $migration->mergeProcessOfProperty('type', $process); - } - - /** - * {@inheritdoc} - */ - public function processFieldWidget(MigrationInterface $migration) { - // See d6_field_instance_widget_settings.yml. - $process['type']['map'][$this->pluginId] = 'link_default'; - $migration->mergeProcessOfProperty('options/type', $process); - } - - /** - * {@inheritdoc} - */ public function getFieldFormatterMap() { // See d6_field_formatter_settings.yml and CckFieldPluginBase processFieldFormatter(). return [ diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php b/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php index 570033a..181cb44 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php @@ -88,9 +88,6 @@ public function loadMultiple(EntityStorageInterface $storage, array $sub_ids = N if ($source_plugin instanceof CckFieldMigrateSourceInterface) { foreach ($source_plugin->fieldData() as $field_name => $data) { switch ($data['type']) { - case 'link': - $this->processLinkField($field_name, $data, $migration); - break; case 'filefield': $this->processFileField($field_name, $data, $migration); break; @@ -176,28 +173,4 @@ protected function processFileField($field_name, $field_data, MigrationInterface $migration->mergeProcessOfProperty($field_name, $process); } - /** - * Manipulate link fields with any per field type processing. - * - * @param string $field_name - * The field we're processing. - * @param array $field_data - * The an array of field type data from the source. - * @param \Drupal\migrate\Entity\MigrationInterface $migration - * The migration entity. - */ - protected function processLinkField($field_name, $field_data, MigrationInterface $migration) { - // Specifically process the link field until core is fixed. - // @see https://www.drupal.org/node/2235457 - $process = [ - 'plugin' => 'd6_cck_link', - 'source' => [ - $field_name, - $field_name . '_title', - $field_name . '_attributes', - ], - ]; - $migration->mergeProcessOfProperty($field_name, $process); - } - }