public function LinkInterface::setWeight in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/LinkInterface.php \Drupal\colossal_menu\LinkInterface::setWeight()
Sets the weight.
Parameters
int $weight: The weight.
Return value
\Drupal\colossal_menu\LinkInterface Return this.
1 method overrides LinkInterface::setWeight()
- Link::setWeight in src/
Entity/ Link.php - Sets the weight.
File
- src/
LinkInterface.php, line 36
Class
- LinkInterface
- Provides an interface for defining Link entities.
Namespace
Drupal\colossal_menuCode
public function setWeight($weight);