Skip to content
Snippets Groups Projects

Provide alter hook for the build of the PatternLayout

Closed Tim Diels requested to merge issue/ui_patterns-3441987:3441987-allow-to-alter into 8.x-1.x
2 files
+ 18
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -94,6 +94,8 @@ class PatternLayout extends LayoutDefault implements PluginFormInterface, Contai
$fields[$region_name] = $regions[$region_name];
}
$this->moduleHandler->alter('ui_patterns_layouts_display', $configuration, $this, $regions);
return [
'#type' => 'pattern',
'#id' => $this->getPluginDefinition()->get('additional')['pattern'],
Loading