public function MenuLinkInterface::getRoute

Returns the Route object associated with this link, if any.

Return value

\Symfony\Component\Routing\Route|null The route object for this menu link, or NULL if there isn't one.

1 method overrides MenuLinkInterface::getRoute()
MenuLink::getRoute in drupal/core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php
Returns the Route object associated with this link, if any.

File

drupal/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php, line 24
Contains \Drupal\menu_link\Plugin\Core\Entity\MenuLinkInterface.

Class

MenuLinkInterface
Provides an interface defining a menu link entity.

Namespace

Drupal\menu_link

Code

public function getRoute();