public function Link::setWeight in Colossal Menu 2.x
Same name and namespace in other branches
- 8 src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::setWeight()
Sets the weight.
Parameters
int $weight: The weight.
Return value
\Drupal\colossal_menu\LinkInterface Return this.
Overrides LinkInterface::setWeight
File
- src/
Entity/ Link.php, line 314
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function setWeight($weight) {
return $this
->set('weight', $weight);
}