Skip to content
Snippets Groups Projects
Commit 84f6559a authored by Jatin Gupta's avatar Jatin Gupta Committed by Edouard Cunibil
Browse files

Issue #3530397: PHP Error after the ui_patterns and ui_patterns_library modules upgraded to 1.11.0

parent a3f31d33
Branches 8.x-1.x
Tags 8.x-1.13
1 merge request!404Issue #3311480 by pdureau, Grimreaper, DuaelFr: Reduce preprocess hooks usage...
Pipeline #524458 passed
......@@ -108,6 +108,7 @@ class PatternLayout extends LayoutDefault implements PluginFormInterface, Contai
// Prepend a new pre_render method that will copy back altered field arrays
// to the #fields variable.
$build['#pre_render'] = $build['#pre_render'] ?? [];
array_unshift($build['#pre_render'], [get_class($this), 'preProcessFields']);
return $build;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment