public function MenuPositionRuleInterface::setWeight in Menu Position 8
Sets weight for the particular menu position rule.
Parameters
int $weight: Weight for the particular rule.
1 method overrides MenuPositionRuleInterface::setWeight()
- MenuPositionRule::setWeight in src/
Entity/ MenuPositionRule.php - Sets weight for the particular menu position rule.
File
- src/
MenuPositionRuleInterface.php, line 132
Class
- MenuPositionRuleInterface
- Provides an interface defining a Example entity.
Namespace
Drupal\menu_positionCode
public function setWeight($weight);