You are here

public function OrderItem::lock in Commerce Core 8.2

Locks the order item.

Return value

$this

Overrides OrderItemInterface::lock

File

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

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

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