function language_preprocess_block in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/language.module \language_preprocess_block()
Implements hook_preprocess_HOOK() for block templates.
File
- core/
modules/ language/ language.module, line 375 - Add language handling functionality to Drupal.
Code
function language_preprocess_block(&$variables) {
if ($variables['configuration']['provider'] == 'language') {
$variables['attributes']['role'] = 'navigation';
}
}