public MenuLinkContent::getWeight()
Returns the weight of the menu link content entity.
Return value
int A weight for use when ordering links.
Overrides MenuLinkContentInterface::getWeight
File
- core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 128
Class
- MenuLinkContent
- Defines the menu link content entity class.
Namespace
Drupal\menu_link_content\Entity
Code
public function getWeight() { return (int) $this->get('weight')->value; }
Please login to continue.