function FormPreprocess::preprocessVerticalTabs
Prepares variables for vertical tabs templates.
Default template: vertical-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
-
core/
lib/ Drupal/ Core/ Form/ FormPreprocess.php, line 424
Class
- FormPreprocess
- Initial preprocess callbacks for the form system.
Namespace
Drupal\Core\FormCode
public function preprocessVerticalTabs(array &$variables) : void {
$element = $variables['element'];
$variables['children'] = !empty($element['#children']) ? $element['#children'] : '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.