function bootstrap_layout_builder_preprocess_blb_section in Bootstrap Layout Builder 2.x
Implements hook_preprocess_HOOK().
File
- ./
bootstrap_layout_builder.module, line 57 - Bootstrap Layout Builder module.
Code
function bootstrap_layout_builder_preprocess_blb_section(&$variables) {
foreach (Element::children($variables['content']) as $name) {
if (!isset($variables['content'][$name]['#attributes'])) {
$variables['content'][$name]['#attributes'] = [];
}
$variables['region_attributes'][$name] = new Attribute($variables['content'][$name]['#attributes']);
}
}