You are here

public function ToolbarMenuElement::weight in Toolbar Menu 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ToolbarMenuElement.php \Drupal\toolbar_menu\Entity\ToolbarMenuElement::weight()

Get the 'weight' property.

Return value

mixed|null The weight property

File

src/Entity/ToolbarMenuElement.php, line 93

Class

ToolbarMenuElement
Defines the Toolbar element entity.

Namespace

Drupal\toolbar_menu\Entity

Code

public function weight() {
  return $this
    ->get('weight');
}