function UmamiHooks::preprocessMenuLocalTask
Same name and namespace in other branches
- main core/profiles/demo_umami/themes/umami/src/Hook/UmamiHooks.php \Drupal\umami\Hook\UmamiHooks::preprocessMenuLocalTask()
Implements hook_preprocess_HOOK() for menu-local-task.
Attributes
#[Hook('preprocess_menu_local_task')]
File
-
core/
profiles/ demo_umami/ themes/ umami/ src/ Hook/ UmamiHooks.php, line 133
Class
- UmamiHooks
- Hook implementations for umami.
Namespace
Drupal\umami\HookCode
public function preprocessMenuLocalTask(&$variables) : void {
$variables['link']['#options']['attributes']['class'][] = 'tabs__link';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.