Created
October 18, 2023 18:26
-
-
Save junaidpv/586e7854c12e55e54da21896d202d97c to your computer and use it in GitHub Desktop.
Fix inline_entity_form plugin not found error in upgrade_d7_field_instance_widget_settings migration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php b/core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php | |
index bebb360d63..321d1f856a 100644 | |
--- a/core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php | |
+++ b/core/modules/field/src/Plugin/migrate/field/d7/EntityReference.php | |
@@ -32,4 +32,15 @@ public function getFieldFormatterMap() { | |
]; | |
} | |
+ /** | |
+ * {@inheritdoc} | |
+ */ | |
+ public function getFieldWidgetMap() { | |
+ $map = parent::getFieldWidgetMap() + [ | |
+ 'inline_entity_form_single' => 'inline_entity_form_simple', | |
+ 'inline_entity_form' => 'inline_entity_form_complex', | |
+ ]; | |
+ return $map; | |
+ } | |
+ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment