W3cubDocs

/Drupal 8

public function ContextualLinkInterface::getWeight

public 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.

File

core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 68

Class

ContextualLinkInterface
Defines a contextual link plugin.

Namespace

Drupal\Core\Menu

Code

public function getWeight();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!ContextualLinkInterface.php/function/ContextualLinkInterface::getWeight/8.1.x