You are here

public function OrderItem::isLocked in Commerce Core 8.2

Gets whether the order item is locked.

Return value

bool TRUE if the order item is locked, FALSE otherwise.

Overrides OrderItemInterface::isLocked

File

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

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function isLocked() {
  return (bool) $this
    ->get('locked')->value;
}