public function MenuActiveTrailInterface::getActiveLink in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php \Drupal\Core\Menu\MenuActiveTrailInterface::getActiveLink()
Fetches a menu link which matches the route name, parameters and menu name.
Parameters
string|NULL $menu_name: (optional) The menu within which to find the active link. If omitted, all menus will be searched.
Return value
\Drupal\Core\Menu\MenuLinkInterface|NULL The menu link for the given route name, parameters and menu, or NULL if there is no matching menu link or the current user cannot access the current page (i.e. we have a 403 response).
1 method overrides MenuActiveTrailInterface::getActiveLink()
- MenuActiveTrail::getActiveLink in core/
lib/ Drupal/ Core/ Menu/ MenuActiveTrail.php - Fetches a menu link which matches the route name, parameters and menu name.
File
- core/
lib/ Drupal/ Core/ Menu/ MenuActiveTrailInterface.php, line 42 - Contains \Drupal\Core\Menu\MenuActiveTrailInterface.
Class
- MenuActiveTrailInterface
- Defines an interface for the active menu trail service.
Namespace
Drupal\Core\MenuCode
public function getActiveLink($menu_name = NULL);