<?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';
}
