function claro_preprocess_views_ui_display_tab_bucket

Same name and namespace in other branches
  1. 8.9.x core/themes/claro/claro.theme \claro_preprocess_views_ui_display_tab_bucket()
  2. 10 core/themes/claro/claro.theme \claro_preprocess_views_ui_display_tab_bucket()
  3. 11.x 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 1099

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';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.