navigation_test.module
Same filename in other branches
File
-
core/
modules/ navigation/ tests/ navigation_test/ navigation_test.module
View source
<?php
/**
* @file
* Contains main module functions.
*/
declare (strict_types=1);
use Drupal\Component\Utility\Html;
/**
* Implements hook_preprocess_HOOK().
*/
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']);
}
Functions
Title | Deprecated | Summary |
---|---|---|
navigation_test_preprocess_block__navigation | Implements hook_preprocess_HOOK(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.