function menu_ui_preprocess_block in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_ui/menu_ui.module \menu_ui_preprocess_block()
- 10 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 458 - 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';
}
}