public function Shortcut::setWeight in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::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.
Overrides ShortcutInterface::setWeight
File
- core/
modules/ shortcut/ src/ Entity/ Shortcut.php, line 82 - Contains \Drupal\shortcut\Entity\Shortcut.
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function setWeight($weight) {
$this
->set('weight', $weight);
return $this;
}