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.
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();