decoupled_menus_test.module

Same filename in other branches
  1. 11.x 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.