public function OrderItem::setData in Commerce Core 8.2
Sets an order item data value with the given key.
Parameters
string $key: The key.
mixed $value: The value.
Return value
$this
Overrides OrderItemInterface::setData
File
- modules/
order/ src/ Entity/ OrderItem.php, line 292
Class
- OrderItem
- Defines the order item entity class.
Namespace
Drupal\commerce_order\EntityCode
public function setData($key, $value) {
$this
->get('data')
->__set($key, $value);
return $this;
}