MenuLinkInterface::getWeight

public MenuLinkInterface::getWeight() Returns the weight of the menu link. Return value int The weight of the menu link, 0 by default. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 20 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getWeight();

MenuLinkInterface::getUrlObject

public MenuLinkInterface::getUrlObject($title_attribute = TRUE) Returns a URL object containing either the external path or route. Parameters bool $title_attribute: (optional) If TRUE, add the link description as the title attribute if the description is not empty. Return value \Drupal\Core\Url A URL object containing either the external path or route. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 131 Class MenuLinkInterface Defines an interface for classes providing a type

MenuLinkInterface::getTranslateRoute

public MenuLinkInterface::getTranslateRoute() Returns route information for a route to translate the menu link. Return value \Drupal\Core\Url|null A Url object, or NULL if there is no route (e.g. when the link is not translatable). File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 229 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getTranslateRoute();

MenuLinkInterface::getTitle

public MenuLinkInterface::getTitle() Returns the localized title to be shown for this link. Return value string The title of the menu link. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 28 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getTitle();

MenuLinkInterface::getRouteParameters

public MenuLinkInterface::getRouteParameters() Returns the route parameters, if available. Return value array An array of parameter names and values. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 119 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getRouteParameters();

MenuLinkInterface::getRouteName

public MenuLinkInterface::getRouteName() Returns the route name, if available. Return value string The name of the route this menu link links to. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 111 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getRouteName();

MenuLinkInterface::getProvider

public MenuLinkInterface::getProvider() Returns the provider (module name) of the menu link. Return value string The provider of the menu link. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 52 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getProvider();

MenuLinkInterface::getParent

public MenuLinkInterface::getParent() Returns the plugin ID of the menu link's parent, or an empty string. Return value string The parent plugin ID. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 60 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getParent();

MenuLinkInterface::getOptions

public MenuLinkInterface::getOptions() Returns the options for this link. Return value array An associative array of options. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 139 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getOptions();

MenuLinkInterface::getMetaData

public MenuLinkInterface::getMetaData() Returns any metadata for this link. Return value array The metadata for the menu link. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 147 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getMetaData();