public function MenuLinkInterface::setRouteObject

Sets the route object for this link.

This should only be called by MenuLinkStorageController when loading the link object. Calling it at other times could result in unpredictable behavior.

Parameters

\Symfony\Component\Routing\Route $route:

1 method overrides MenuLinkInterface::setRouteObject()
MenuLink::setRouteObject in drupal/core/modules/menu_link/lib/Drupal/menu_link/Plugin/Core/Entity/MenuLink.php
Sets the route object for this link.

File

drupal/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkInterface.php, line 35
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 setRouteObject(Route $route);