public function Promotion::setWeight in Commerce Core 8.2
Sets the weight.
Parameters
int $weight: The weight.
Return value
$this
Overrides PromotionInterface::setWeight
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 497
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function setWeight($weight) {
$this
->set('weight', $weight);
return $this;
}