function template_preprocess_ogmenu_instance in Organic Groups Menu (OG Menu) 8
Prepares variables for OG Menu instance templates.
Default template: ogmenu_instance.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
- ./
ogmenu_instance.page.inc, line 24 - Contains ogmenu_instance.page.inc..
Code
function template_preprocess_ogmenu_instance(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}