function template_preprocess_horizontal_tabs in Field Group 8.3
Same name and namespace in other branches
- 8 templates/theme.inc \template_preprocess_horizontal_tabs()
Prepares variables for horizontal tabs templates.
Default template: horizontal-tabs.html.twig.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties and children of the details element. Properties used: #children.
File
- templates/
theme.inc, line 20 - Preprocessors for fieldgroup elements.
Code
function template_preprocess_horizontal_tabs(array &$variables) {
$element = $variables['element'];
$variables['children'] = !empty($element['#children']) ? $element['#children'] : '';
}