function olivero_theme_suggestions_menu_alter in Drupal 9
Implements hook_theme_suggestions_HOOK_alter() for menu.
File
- core/
themes/ olivero/ olivero.theme, line 159 - Functions to support theming in the Olivero theme.
Code
function olivero_theme_suggestions_menu_alter(&$suggestions, array $variables) {
if (isset($variables['attributes']['region'])) {
$suggestions[] = 'menu__' . $variables['attributes']['region'];
}
}