function ContextualLinkInterface::getWeight
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::getWeight()
- 10 core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::getWeight()
- 11.x 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 68
Class
- ContextualLinkInterface
- Defines a contextual link plugin.
Namespace
Drupal\Core\MenuCode
public function getWeight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.