You are here

public function Order::getVersion in Commerce Core 8.2

Gets the order version identifier.

Return value

int Version identifier of the order.

Overrides OrderInterface::getVersion

1 call to Order::getVersion()
Order::preSave in modules/order/src/Entity/Order.php
Acts on an entity before the presave hook is invoked.

File

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

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function getVersion() {
  return $this
    ->get('version')->value;
}