public function PromotionInterface::setWeight in Commerce Core 8.2
Sets the weight.
Parameters
int $weight: The weight.
Return value
$this
1 method overrides PromotionInterface::setWeight()
- Promotion::setWeight in modules/
promotion/ src/ Entity/ Promotion.php - Sets the weight.
File
- modules/
promotion/ src/ Entity/ PromotionInterface.php, line 387
Class
- PromotionInterface
- Defines the interface for promotions.
Namespace
Drupal\commerce_promotion\EntityCode
public function setWeight($weight);