language_preprocess_block(&$variables)
Implements hook_preprocess_HOOK() for block templates.
File
- core/modules/language/language.module, line 380
- Add language handling functionality to Drupal.
Code
function language_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'language') { $variables['attributes']['role'] = 'navigation'; } }
Please login to continue.