class NavigationTestThemeHooks
Same name and namespace in other branches
- 11.x core/modules/navigation/tests/navigation_test/src/Hook/NavigationTestThemeHooks.php \Drupal\navigation_test\Hook\NavigationTestThemeHooks
Theme hook implementations for navigation_test module.
Hierarchy
- class \Drupal\navigation_test\Hook\NavigationTestThemeHooks
Expanded class hierarchy of NavigationTestThemeHooks
File
-
core/
modules/ navigation/ tests/ navigation_test/ src/ Hook/ NavigationTestThemeHooks.php, line 13
Namespace
Drupal\navigation_test\HookView source
class NavigationTestThemeHooks {
/**
* Implements hook_preprocess_HOOK().
*/
public function preprocessBlockNavigation(&$variables) : void {
// Add some additional classes so we can target the correct contextual link
// in tests.
$variables['attributes']['class'][] = Html::cleanCssIdentifier('block-' . $variables['elements']['#plugin_id']);
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| NavigationTestThemeHooks::preprocessBlockNavigation | public | function | Implements hook_preprocess_HOOK(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.