pluginId][$this->pluginId] = $this->pluginId; $migration->mergeProcessOfProperty('type', $process); } /** * {@inheritdoc} */ public function processFieldInstance(MigrationInterface $migration) { // Nothing to do by default with field instances. } /** * {@inheritdoc} */ public function processFieldWidget(MigrationInterface $migration) { $process = []; foreach ($this->getFieldWidgetMap() as $source_widget => $destination_widget) { $process['type']['map'][$source_widget] = $destination_widget; } $migration->mergeProcessOfProperty('options/type', $process); } /** * {@inheritdoc} */ public function getFieldWidgetMap() { // By default, use the plugin ID for the widget types. return [ $this->pluginId => $this->pluginId . '_default', ]; } /** * {@inheritdoc} */ public function processFieldFormatter(MigrationInterface $migration) { $process = []; foreach ($this->getFieldFormatterMap() as $source_format => $destination_format) { $process[0]['map'][$this->pluginId][$source_format] = $destination_format; } $migration->mergeProcessOfProperty('options/type', $process); } /** * {@inheritdoc} */ public function getFieldType(Row $row) { $field_type = $row->getSourceProperty('type'); if (isset($this->pluginDefinition['type_map'][$field_type])) { return $this->pluginDefinition['type_map'][$field_type]; } else { return $field_type; } } }