You are here

public function OrderStatus::setWeight in Ubercart 8.4

Sets the status weight to the given value.

Parameters

int $weight: The desired weight of this status.

Return value

$this

Overrides OrderStatusInterface::setWeight

File

uc_order/src/Entity/OrderStatus.php, line 114

Class

OrderStatus
Defines the order status entity.

Namespace

Drupal\uc_order\Entity

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}