toolbar_test.module

Same filename in other branches
  1. 9 core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module
  2. 8.9.x core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module
  3. 10 core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module

File

core/modules/toolbar/tests/modules/toolbar_test/toolbar_test.module

View source
<?php


/**
 * @file
 * A dummy module to test API interaction with the Toolbar module.
 */
declare (strict_types=1);

/**
 * Implements hook_preprocess_HOOK().
 */
function toolbar_test_preprocess_menu(&$variables) : void {
    // All the standard hook_theme variables should be populated when the
    // Toolbar module is rendering a menu.
    foreach ([
        'menu_name',
        'items',
        'attributes',
    ] as $variable) {
        $variables[$variable];
    }
}

Functions

Title Deprecated Summary
toolbar_test_preprocess_menu Implements hook_preprocess_HOOK().

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