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\EntityCode
public function isLocked() {
return (bool) $this
->get('locked')->value;
}