function template_preprocess_vertical_tabs

Same name in other branches
  1. 9 core/includes/form.inc \template_preprocess_vertical_tabs()
  2. 10 core/includes/form.inc \template_preprocess_vertical_tabs()
  3. 11.x core/includes/form.inc \template_preprocess_vertical_tabs()

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/includes/form.inc, line 323

Code

function template_preprocess_vertical_tabs(&$variables) {
    $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.