MenuLinkContent::getWeight

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;
}
doc_Drupal
2016-10-29 09:26:32
Comments
Leave a Comment

Please login to continue.