function MenuLinkContentInterface::getWeight
Same name in other branches
- 9 core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getWeight()
- 10 core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getWeight()
- 11.x core/modules/menu_link_content/src/MenuLinkContentInterface.php \Drupal\menu_link_content\MenuLinkContentInterface::getWeight()
Returns the weight of the menu link content entity.
Return value
int A weight for use when ordering links.
1 method overrides MenuLinkContentInterface::getWeight()
- MenuLinkContent::getWeight in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php - Returns the weight of the menu link content entity.
File
-
core/
modules/ menu_link_content/ src/ MenuLinkContentInterface.php, line 90
Class
- MenuLinkContentInterface
- Defines an interface for custom menu links.
Namespace
Drupal\menu_link_contentCode
public function getWeight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.