menu_ui_preprocess_block(&$variables)
Implements hook_preprocess_HOOK() for block templates.
File
- core/modules/menu_ui/menu_ui.module, line 494
- 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'; } }
Please login to continue.