You are here

public function ContextualLinkDefault::getWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/ContextualLinkDefault.php \Drupal\Core\Menu\ContextualLinkDefault::getWeight()

Returns the weight of the contextual link.

The contextual links in one group are sorted by weight for display.

Return value

int The weight as positive/negative integer.

Overrides ContextualLinkInterface::getWeight

File

core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 50
Contains \Drupal\Core\Menu\ContextualLinkDefault.

Class

ContextualLinkDefault
Provides a common base implementation of a contextual link.

Namespace

Drupal\Core\Menu

Code

public function getWeight() {
  return $this->pluginDefinition['weight'];
}