function olivero_preprocess_menu_local_tasks in Drupal 10
Same name and namespace in other branches
- 9 core/themes/olivero/olivero.theme \olivero_preprocess_menu_local_tasks()
Implements hook_preprocess_HOOK() for menu-local-tasks templates.
File
- core/
themes/ olivero/ olivero.theme, line 243 - Functions to support theming in the Olivero theme.
Code
function olivero_preprocess_menu_local_tasks(&$variables) {
foreach (Element::children($variables['primary']) as $key) {
$variables['primary'][$key]['#level'] = 'primary';
}
foreach (Element::children($variables['secondary']) as $key) {
$variables['secondary'][$key]['#level'] = 'secondary';
}
}