function template_preprocess_horizontal_tabs in Field Group 8
Same name and namespace in other branches
- 8.3 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 19 - Preprocessors for fieldgroup elements.
Code
function template_preprocess_horizontal_tabs(&$variables) {
$element = $variables['element'];
$variables['children'] = !empty($element['#children']) ? $element['#children'] : '';
}