You are here

public function OrderItem::unlock in Commerce Core 8.2

Unlocks the order item.

Return value

$this

Overrides OrderItemInterface::unlock

File

modules/order/src/Entity/OrderItem.php, line 327

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function unlock() {
  $this
    ->set('locked', FALSE);
  return $this;
}