public function Order::setVersion in Commerce Core 8.2
Sets the order version identifier.
Parameters
int $version: Version identifier of the order.
Return value
$this
Overrides OrderInterface::setVersion
1 call to Order::setVersion()
- 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 125
Class
- Order
- Defines the order entity class.
Namespace
Drupal\commerce_order\EntityCode
public function setVersion($version) {
$this
->set('version', $version);
return $this;
}