private function Builder::panels in GridStack 8.2
Provides Panels IPE attributes.
1 call to Builder::panels()
- Builder::adminAttributes in src/
Plugin/ gridstack/ stylizer/ Builder.php - Provides Layout Builder attributes if available.
File
- src/
Plugin/ gridstack/ stylizer/ Builder.php, line 173
Class
- Builder
- Provides Layout Builder integration for editor previews.
Namespace
Drupal\gridstack\Plugin\gridstack\stylizerCode
private function panels(array &$box, array $settings, array $region = []) {
$box['#prefix'] = $region['#prefix'];
$box['#suffix'] = $region['#suffix'];
foreach (Element::children($box) as $bid) {
if (isset($region[$bid]['#attributes']['data-block-id'])) {
$box[$bid]['#attributes']['data-block-id'] = $region[$bid]['#attributes']['data-block-id'];
}
}
}