You are here

public function Promotion::getWeight in Commerce Core 8.2

Gets the weight.

Return value

int The weight.

Overrides PromotionInterface::getWeight

File

modules/promotion/src/Entity/Promotion.php, line 490

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

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