function claro_preprocess_admin_block

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_preprocess_admin_block()
  2. 8.9.x core/themes/claro/claro.theme \claro_preprocess_admin_block()
  3. 10 core/themes/claro/claro.theme \claro_preprocess_admin_block()

Implements template_preprocess_HOOK() for admin_block.

File

core/themes/claro/claro.theme, line 216

Code

function claro_preprocess_admin_block(&$variables) {
    if (!empty($variables['block']['content'])) {
        $variables['block']['content']['#attributes']['class'][] = 'admin-list--panel';
    }
}

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