function ClaroHooks::preprocessToolbar
Same name and namespace in other branches
- 11.x core/themes/claro/src/Hook/ClaroHooks.php \Drupal\claro\Hook\ClaroHooks::preprocessToolbar()
Implements hook_preprocess_HOOK() for toolbar.
This is also called by system_preprocess_toolbar() in instances where Claro is the admin theme but not the active theme.
Attributes
#[Hook('preprocess_toolbar')]
See also
system_preprocess_toolbar()
File
-
core/
themes/ claro/ src/ Hook/ ClaroHooks.php, line 1536
Class
- ClaroHooks
- Hook implementations for claro.
Namespace
Drupal\claro\HookCode
public function preprocessToolbar(&$variables, $hook, $info) : void {
$variables['attributes']['data-drupal-claro-processed-toolbar'] = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.