public function Shortcut::setWeight in Drupal 10
Same name and namespace in other branches
- 8 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setWeight()
- 9 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::setWeight()
File
- core/
modules/ shortcut/ src/ Entity/ Shortcut.php, line 84
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function setWeight($weight) {
$this
->set('weight', $weight);
return $this;
}