You are here

public function PriceList::getWeight in Commerce Pricelist 8.2

Gets the weight.

Return value

int The weight.

Overrides PriceListInterface::getWeight

File

src/Entity/PriceList.php, line 240

Class

PriceList
Defines the Price list entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

public function getWeight() {
  return (int) $this
    ->get('weight')->value;
}