You are here

public function Shortcut::getWeight in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::getWeight()
  2. 9 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::getWeight()

File

core/modules/shortcut/src/Entity/Shortcut.php, line 77

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

public function getWeight() {
  return $this
    ->get('weight')->value;
}