function template_preprocess_homebox_layout in Homebox 8
Prepares variables for Homebox Layout templates.
Default template: homebox_layout.html.twig.
Parameters
array $variables: An associative array containing:
- elements: An associative array containing the user information and any
- attributes: HTML attributes for the containing element.
File
- ./
homebox_layout.page.inc, line 22 - Contains homebox_layout.page.inc.
Code
function template_preprocess_homebox_layout(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}