class LanguageThemeHooks

Hook implementations for language.

Hierarchy

Expanded class hierarchy of LanguageThemeHooks

File

core/modules/language/src/Hook/LanguageThemeHooks.php, line 10

Namespace

Drupal\language\Hook
View source
class LanguageThemeHooks {
  
  /**
   * Implements hook_preprocess_HOOK() for block templates.
   */
  public function preprocessBlock(&$variables) : void {
    if ($variables['configuration']['provider'] == 'language') {
      $variables['attributes']['role'] = 'navigation';
    }
  }

}

Members

Title Sort descending Modifiers Object type Summary
LanguageThemeHooks::preprocessBlock public function Implements hook_preprocess_HOOK() for block templates.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.