You are here

public function PriceListItem::setWeight in Commerce Pricelist 8

File

src/Entity/PriceListItem.php, line 142

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function setWeight($weight) {
  $this
    ->set('weight', $weight);
  return $this;
}