1 views_ui.theme.inc | template_preprocess_views_ui_display_tab_bucket(&$variables) |
File
- core/
modules/ views_ui/ views_ui.theme.inc, line 471 - Theme functions for the Views UI module.
Code
function template_preprocess_views_ui_display_tab_bucket(&$variables) {
$element = $variables['element'];
$variables['item_help_icon'] = '';
if (!empty($element['#item_help_icon'])) {
$variables['item_help_icon'] = render($element['#item_help_icon']);
}
if (!empty($element['#name'])) {
$variables['classes'][] = backdrop_clean_css_identifier(strtolower($element['#name']));
}
if (!empty($element['#overridden'])) {
$variables['classes'][] = 'overridden';
$variables['attributes']['title'][] = t('Overridden');
}
$variables['content'] = $element['#children'];
$variables['title'] = $element['#title'];
$variables['actions'] = !empty($element['actions']) ? backdrop_render($element['actions']) : '';
}