Overrides MenuLinkInterface::getWeight
public function getWeight() { // By default the weight is 0. if (!isset($this->pluginDefinition['weight'])) { $this->pluginDefinition['weight'] = 0; } return $this->pluginDefinition['weight']; }