File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
src/bundle/DependencyInjection/Configuration/Parser Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,28 @@ public function mapConfig(
61
61
$ currentScope ,
62
62
ContextualizerInterface $ contextualizer
63
63
): void {
64
+ if (!empty ($ scopeSettings ['admin_ui_forms ' ]['content_edit_form_templates ' ])) {
65
+ $ scopeSettings ['admin_ui_forms.content_edit_form_templates ' ] = $ this ->processContentEditFormTemplates (
66
+ $ scopeSettings ['admin_ui_forms ' ]['content_edit_form_templates ' ]
67
+ );
68
+ unset($ scopeSettings ['admin_ui_forms ' ]['content_edit_form_templates ' ]);
69
+ }
70
+
64
71
$ contextualizer ->setContextualParameter (
65
72
static ::FORM_TEMPLATES_PARAM ,
66
73
$ currentScope ,
67
- $ this ->processContentEditFormTemplates (
68
- $ scopeSettings ['admin_ui_forms ' ]['content_edit_form_templates ' ] ?? []
69
- )
74
+ $ scopeSettings ['admin_ui_forms.content_edit_form_templates ' ] ?? []
70
75
);
71
76
}
72
77
78
+ /**
79
+ * {@inheritdoc}
80
+ */
81
+ public function postMap (array $ config , ContextualizerInterface $ contextualizer )
82
+ {
83
+ $ contextualizer ->mapConfigArray ('admin_ui_forms.content_edit_form_templates ' , $ config );
84
+ }
85
+
73
86
/**
74
87
* Processes given prioritized list of templates, sorts them according to their priorities and
75
88
* returns as a simple list of templates.
You can’t perform that action at this time.
0 commit comments