W3cubDocs

/Drupal 8

function template_preprocess_vertical_tabs

template_preprocess_vertical_tabs(&$variables)

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 317
Functions for form and batch generation and processing.

Code

function template_preprocess_vertical_tabs(&$variables) {
  $element = $variables['element'];
  $variables['children'] = (!empty($element['#children'])) ? $element['#children'] : '';
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!form.inc/function/template_preprocess_vertical_tabs/8.1.x