function menu_ui_preprocess_block in Drupal 10
Same name and namespace in other branches
- 8 core/modules/menu_ui/menu_ui.module \menu_ui_preprocess_block()
- 9 core/modules/menu_ui/menu_ui.module \menu_ui_preprocess_block()
Implements hook_preprocess_HOOK() for block templates.
File
- core/
modules/ menu_ui/ menu_ui.module, line 429 - Allows administrators to customize the site's navigation menus.
Code
function menu_ui_preprocess_block(&$variables) {
if ($variables['configuration']['provider'] == 'menu_ui') {
$variables['attributes']['role'] = 'navigation';
}
}