Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
existing_values_autocomplete_widget
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
existing_values_autocomplete_widget
Commits
a1c2dc19
Commit
a1c2dc19
authored
2 years ago
by
Joshua Sedler
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3307590
: Provide migration from autocomplete_widgets
parent
fb2d998a
No related branches found
No related tags found
1 merge request
!3
Issue #3307590: Provide migration from autocomplete_widgets
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
existing_values_autocomplete_widget.module
+29
-0
29 additions, 0 deletions
existing_values_autocomplete_widget.module
with
29 additions
and
0 deletions
existing_values_autocomplete_widget.module
+
29
−
0
View file @
a1c2dc19
...
...
@@ -22,3 +22,32 @@ function existing_values_autocomplete_widget_help($route_name, RouteMatchInterfa
default
:
}
}
/**
* Implements hook_field_migration_field_widget_info().
*
* NOTE, this currently requires the following patches:
* "https://www.drupal.org/files/issues/2021-12-27/3204212-field-migration-widget-formatter-mapping-41--fix-only.patch"
* "https://www.drupal.org/files/issues/2022-04-07/core-allow_map_formatter_migration-3202462-16--on-top-of-3204212-41.patch"
*/
function
existing_values_autocomplete_widget_field_migration_field_widget_info
()
{
return
[
'list_text'
=>
[
'autocomplete_widgets_allowvals'
=>
'existing_autocomplete_field_widget'
,
],
'list_integer'
=>
[
'autocomplete_widgets_allowvals'
=>
'existing_autocomplete_field_widget'
,
],
'list_decimal'
=>
[
'autocomplete_widgets_allowvals'
=>
'existing_autocomplete_field_widget'
,
],
'list_float'
=>
[
'autocomplete_widgets_allowvals'
=>
'existing_autocomplete_field_widget'
,
],
'text'
=>
[
'autocomplete_widgets_flddata'
=>
'existing_autocomplete_field_widget'
,
'autocomplete_widgets_suggested'
=>
'existing_autocomplete_field_widget'
,
'autocomplete_widgets_node_reference'
=>
'existing_autocomplete_field_widget'
,
],
];
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment