class DecoupledMenusTestHooks
Hook implementations for decoupled_menus_test.
Hierarchy
- class \Drupal\decoupled_menus_test\Hook\DecoupledMenusTestHooks
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\HookView 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';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.