LanguageThemeHooks.php
Namespace
Drupal\language\HookFile
-
core/
modules/ language/ src/ Hook/ LanguageThemeHooks.php
View source
<?php
namespace Drupal\language\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for language.
*/
class LanguageThemeHooks {
/**
* Implements hook_preprocess_HOOK() for block templates.
*/
public function preprocessBlock(&$variables) : void {
if ($variables['configuration']['provider'] == 'language') {
$variables['attributes']['role'] = 'navigation';
}
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
LanguageThemeHooks | Hook implementations for language. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.