language_preprocess_block

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';
  }
}
doc_Drupal
2016-10-29 09:23:03
Comments
Leave a Comment

Please login to continue.