diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php b/core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php index 3a6afd0d8a..72a49e8536 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php @@ -46,7 +46,13 @@ public function processFieldWidget(MigrationInterface $migration) { } /** - * {@inheritdoc} + * Get the field formatter type from the source. + * + * @param \Drupal\migrate\Row $row + * The field being migrated. + * + * @return string + * The field formatter type. */ public function getFieldFormatterType(Row $row) { return $row->getSourceProperty('formatter/type'); @@ -60,7 +66,13 @@ public function getFieldFormatterMap() { } /** - * {@inheritdoc} + * Get the field widget type from the source. + * + * @param \Drupal\migrate\Row $row + * The field being migrated. + * + * @return string + * The field widget type. */ public function getFieldWidgetType(Row $row) { return $row->getSourceProperty('widget/type'); @@ -81,8 +93,9 @@ public function getFieldWidgetMap() { */ public function processFieldFormatter(MigrationInterface $migration) { $process = []; + $plugin_id = preg_replace('/d[67]_/', '', $this->pluginId); foreach ($this->getFieldFormatterMap() as $source_format => $destination_format) { - $process[0]['map'][$this->pluginId][$source_format] = $destination_format; + $process[0]['map'][$plugin_id][$source_format] = $destination_format; } $migration->mergeProcessOfProperty('options/type', $process); }