public function Link::setWeight in Colossal Menu 8
Same name and namespace in other branches
- 2.x 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 334
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function setWeight($weight) {
return $this
->set('weight', $weight);
}