public function ShortcutInterface::setWeight in Drupal 10
Same name and namespace in other branches
- 8 core/modules/shortcut/src/ShortcutInterface.php \Drupal\shortcut\ShortcutInterface::setWeight()
- 9 core/modules/shortcut/src/ShortcutInterface.php \Drupal\shortcut\ShortcutInterface::setWeight()
Sets the weight among shortcuts with the same depth.
Parameters
int $weight: The shortcut weight.
Return value
$this The called shortcut entity.
File
- core/
modules/ shortcut/ src/ ShortcutInterface.php, line 48
Class
- ShortcutInterface
- Provides an interface defining a shortcut entity.
Namespace
Drupal\shortcutCode
public function setWeight($weight);