function claro_preprocess_toolbar in Drupal 10
Same name and namespace in other branches
- 9 core/themes/claro/claro.theme \claro_preprocess_toolbar()
Implements hook_preprocess_toolbar().
This is also called by system_preprocess_toolbar() in instances where Claro is the admin theme but not the active theme.
See also
1 call to claro_preprocess_toolbar()
- system_preprocess_toolbar in core/
modules/ system/ system.module - Implements hook_preprocess_toolbar().
File
- core/
themes/ claro/ claro.theme, line 1646 - Functions to support theming in the Claro theme.
Code
function claro_preprocess_toolbar(&$variables, $hook, $info) {
$variables['attributes']['data-drupal-claro-processed-toolbar'] = TRUE;
}