File tree 1 file changed +3
-1
lines changed
modules/ui_patterns_layouts
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ function ui_patterns_layouts_layout_alter(&$definitions) {
21
21
// @todo: Use layout deriver instead.
22
22
// @link https://github.com/nuvoleweb/ui_patterns/issues/94
23
23
foreach (UiPatterns::getPatternDefinitions() as $pattern_definition) {
24
+ $id = 'pattern_' . $pattern_definition->id();
24
25
$definition = [
26
+ 'id' => $id,
25
27
'label' => $pattern_definition->getLabel(),
26
28
'theme' => $pattern_definition->getThemeHook(),
27
29
'provider' => $pattern_definition->getProvider(),
@@ -33,7 +35,7 @@ function ui_patterns_layouts_layout_alter(&$definitions) {
33
35
foreach ($pattern_definition->getFields() as $field) {
34
36
$definition['regions'][$field->getName()]['label'] = $field->getLabel();
35
37
}
36
- $definitions['pattern_' . $pattern_definition->id() ] = new LayoutDefinition($definition);
38
+ $definitions[$id ] = new LayoutDefinition($definition);
37
39
}
38
40
}
39
41
You can’t perform that action at this time.
0 commit comments