function claro_preprocess_views_ui_display_tab_bucket in Drupal 8
Same name and namespace in other branches
- 9 core/themes/claro/claro.theme \claro_preprocess_views_ui_display_tab_bucket()
- 10 core/themes/claro/claro.theme \claro_preprocess_views_ui_display_tab_bucket()
Implements hook_preprocess_HOOK() for views_ui_display_tab_bucket.
File
- core/
themes/ claro/ claro.theme, line 1028 - Functions to support theming in the Claro theme.
Code
function claro_preprocess_views_ui_display_tab_bucket(&$variables) {
// Instead of re-styling Views UI dropbuttons with module-specific CSS styles,
// change dropbutton variants to the extra small version.
// @todo Revisit after https://www.drupal.org/node/3057581 is added.
if (!empty($variables['actions']) && $variables['actions']['#type'] === 'dropbutton') {
$variables['actions']['#dropbutton_type'] = 'extrasmall';
}
}