public function Shortcut::getWeight in Drupal 9
Same name and namespace in other branches
- 8 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::getWeight()
Returns the weight among shortcuts with the same depth.
Return value
int The shortcut weight.
Overrides ShortcutInterface::getWeight
File
- core/
modules/ shortcut/ src/ Entity/ Shortcut.php, line 77
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function getWeight() {
return $this
->get('weight')->value;
}