Prepares variables for Views UI display tab bucket templates.
Default template: views-ui-display-tab-bucket.html.twig.
array $variables: An associative array containing:
function template_preprocess_views_ui_display_tab_bucket(&$variables) {
$element = $variables['element'];
$variables['attributes']['class'][] = 'views-ui-display-tab-bucket';
if (!empty($element['#name'])) {
$variables['attributes']['class'][] = drupal_html_class($element['#name']);
}
if (!empty($element['#overridden'])) {
$variables['attributes']['class'][] = 'overridden';
$variables['attributes']['title'][] = t('Overridden');
}
$variables['content'] = $element['#children'];
$variables['title'] = $element['#title'];
$variables['actions'] = !empty($element['#actions']) ? $element['#actions'] : array();
}