You are here

public function ContextualLinkInterface::getWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::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.

1 method overrides ContextualLinkInterface::getWeight()
ContextualLinkDefault::getWeight in core/lib/Drupal/Core/Menu/ContextualLinkDefault.php
Returns the weight of the contextual link.

File

core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 65
Contains \Drupal\Core\Menu\ContextualLinkInterface.

Class

ContextualLinkInterface
Defines a contextual link plugin.

Namespace

Drupal\Core\Menu

Code

public function getWeight();