Search for getActiveLink

  1. Search 7.x for getActiveLink
  2. Search 9.5.x for getActiveLink
  3. Search 8.9.x for getActiveLink
  4. Search 10.3.x for getActiveLink
  5. Other projects
Title Object type File name Summary
MenuActiveTrail::getActiveLink function core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php Fetches a menu link that matches the currently active route.
MenuActiveTrail::getActiveLink function core/lib/Drupal/Core/Menu/MenuActiveTrail.php Fetches a menu link that matches the currently active route.
MenuActiveTrailInterface::getActiveLink function core/lib/Drupal/Core/Menu/MenuActiveTrailInterface.php Fetches a menu link that matches the currently active route.
MenuActiveTrailTest::testGetActiveLink function core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php Tests getActiveLink().
MenuActiveTrailTest::testGetActiveLinkReturnsFrontPageLinkAtTheFrontPage function core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php Tests that getActiveLink() returns a <front> route link for a route that is the front page and has no other links.

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