public function Builder::regions in GridStack 8.2
Returns admin regions.
File
- src/
Plugin/ gridstack/ stylizer/ Builder.php, line 114
Class
- Builder
- Provides Layout Builder integration for editor previews.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
public function regions(array $element) {
$regions = [];
foreach (Element::children($element) as $child) {
if ($child == 'items') {
continue;
}
$regions[$child] = $element[$child];
}
return $regions;
}