decoupled_menus_test.module

Same filename and directory in other branches
  1. 10 core/modules/system/tests/modules/decoupled_menus_test/decoupled_menus_test.module

File

core/modules/system/tests/modules/decoupled_menus_test/decoupled_menus_test.module

View source
<?php


/**
 * @file
 * Support module for decoupled_menus endpoint in tests.
 */
declare (strict_types=1);

/**
 * Implements hook_menu_links_discovered_alter().
 */
function decoupled_menus_test_menu_links_discovered_alter(&$links) {
    // Sets a custom link relation type on a menu item.
    // @see https://tools.ietf.org/id/draft-pot-authentication-link-01.html
    $links['user.page']['options']['attributes']['rel'] = 'authenticated-as';
}

Functions

Title Deprecated Summary
decoupled_menus_test_menu_links_discovered_alter Implements hook_menu_links_discovered_alter().

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