function template_preprocess_views_ui_display_tab_bucket
Same name in other branches
- 9 core/modules/views_ui/views_ui.theme.inc \template_preprocess_views_ui_display_tab_bucket()
- 10 core/modules/views_ui/views_ui.theme.inc \template_preprocess_views_ui_display_tab_bucket()
- 11.x core/modules/views_ui/views_ui.theme.inc \template_preprocess_views_ui_display_tab_bucket()
Prepares variables for Views UI display tab bucket templates.
Default template: views-ui-display-tab-bucket.html.twig.
Parameters
array $variables: An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #name, #overridden, #children, #title, #actions.
File
-
core/
modules/ views_ui/ views_ui.theme.inc, line 81
Code
function template_preprocess_views_ui_display_tab_bucket(&$variables) {
$element = $variables['element'];
if (!empty($element['#overridden'])) {
$variables['attributes']['title'][] = t('Overridden');
}
$variables['name'] = isset($element['#name']) ? $element['#name'] : NULL;
$variables['overridden'] = isset($element['#overridden']) ? $element['#overridden'] : NULL;
$variables['content'] = $element['#children'];
$variables['title'] = $element['#title'];
$variables['actions'] = !empty($element['#actions']) ? $element['#actions'] : [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.