function claro_preprocess_admin_block in Drupal 10
Same name and namespace in other branches
- 8 core/themes/claro/claro.theme \claro_preprocess_admin_block()
- 9 core/themes/claro/claro.theme \claro_preprocess_admin_block()
Implements template_preprocess_HOOK() for admin_block.
File
- core/
themes/ claro/ claro.theme, line 194 - Functions to support theming in the Claro theme.
Code
function claro_preprocess_admin_block(&$variables) {
if (!empty($variables['block']['content'])) {
$variables['block']['content']['#attributes']['class'][] = 'admin-list--panel';
}
}