function ShortcutInterface::getWeight
Same name in other branches
- 9 core/modules/shortcut/src/ShortcutInterface.php \Drupal\shortcut\ShortcutInterface::getWeight()
- 8.9.x core/modules/shortcut/src/ShortcutInterface.php \Drupal\shortcut\ShortcutInterface::getWeight()
- 11.x core/modules/shortcut/src/ShortcutInterface.php \Drupal\shortcut\ShortcutInterface::getWeight()
Returns the weight among shortcuts with the same depth.
Return value
int The shortcut weight.
1 method overrides ShortcutInterface::getWeight()
- Shortcut::getWeight in core/
modules/ shortcut/ src/ Entity/ Shortcut.php - Returns the weight among shortcuts with the same depth.
File
-
core/
modules/ shortcut/ src/ ShortcutInterface.php, line 37
Class
- ShortcutInterface
- Provides an interface defining a shortcut entity.
Namespace
Drupal\shortcutCode
public function getWeight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.