class DecoupledMenusTestHooks

Hook implementations for decoupled_menus_test.

Hierarchy

Expanded class hierarchy of DecoupledMenusTestHooks

File

core/modules/system/tests/modules/decoupled_menus_test/src/Hook/DecoupledMenusTestHooks.php, line 12

Namespace

Drupal\decoupled_menus_test\Hook
View source
class DecoupledMenusTestHooks {
    
    /**
     * Implements hook_menu_links_discovered_alter().
     */
    public function menuLinksDiscoveredAlter(&$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';
    }

}

Members

Title Sort descending Modifiers Object type Summary
DecoupledMenusTestHooks::menuLinksDiscoveredAlter public function Implements hook_menu_links_discovered_alter().

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