function theme_toolbar_tab_wrapper

Returns HTML for wrapping a toolbar tab.

Toolbar tabs have a common styling and placement with the toolbar's bar area.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties and children of the tray. Properties used: #children and #attributes.

File

drupal/core/modules/toolbar/toolbar.module, line 344
Administration toolbar for quick access to top level administration items.

Code

function theme_toolbar_tab_wrapper(&$variables) {
  if (!empty($variables['element']['#children'])) {
    $element = $variables['element'];
    return '<div' . new Attribute($element['#wrapper_attributes']) . '>' . $element['#children'] . '</div>';
  }
}