function navigation_test_preprocess_block__navigation
Same name in other branches
- 11.x core/modules/navigation/tests/navigation_test/navigation_test.module \navigation_test_preprocess_block__navigation()
Implements hook_preprocess_HOOK().
File
-
core/
modules/ navigation/ tests/ navigation_test/ navigation_test.module, line 15
Code
function navigation_test_preprocess_block__navigation(&$variables) {
// Add some additional classes so we can target the correct contextual link
// in tests.
$variables['attributes']['class'][] = Html::cleanCssIdentifier('block-' . $variables['elements']['#plugin_id']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.