function olivero_theme_suggestions_menu_alter
Same name in other branches
- 9 core/themes/olivero/olivero.theme \olivero_theme_suggestions_menu_alter()
- 11.x core/themes/olivero/olivero.theme \olivero_theme_suggestions_menu_alter()
Implements hook_theme_suggestions_HOOK_alter() for menu.
File
-
core/
themes/ olivero/ olivero.theme, line 165
Code
function olivero_theme_suggestions_menu_alter(&$suggestions, array $variables) {
if (isset($variables['attributes']['region'])) {
$suggestions[] = 'menu__' . $variables['attributes']['region'];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.