You are here

public function PriceList::setWeight in Commerce Pricelist 8.2

Sets the weight.

Parameters

int $weight: The weight.

Return value

$this

Overrides PriceListInterface::setWeight

File

src/Entity/PriceList.php, line 247

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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