public function ShortcutInterface::setWeight in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
\Drupal\shortcut\ShortcutInterface The called shortcut entity.
1 method overrides ShortcutInterface::setWeight()
- Shortcut::setWeight in core/
modules/ shortcut/ src/ Entity/ Shortcut.php - Sets the weight among shortcuts with the same depth.
File
- core/
modules/ shortcut/ src/ ShortcutInterface.php, line 53 - Contains \Drupal\shortcut\ShortcutInterface.
Class
- ShortcutInterface
- Provides an interface defining a shortcut entity.
Namespace
Drupal\shortcutCode
public function setWeight($weight);