You are here

public function Order::isLocked in Commerce Core 8.2

Gets whether the order is locked.

Return value

bool TRUE if the order is locked, FALSE otherwise.

Overrides OrderInterface::isLocked

File

modules/order/src/Entity/Order.php, line 577

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

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