You are here

public function OrderItemInterface::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

1 method overrides OrderItemInterface::setData()
OrderItem::setData in modules/order/src/Entity/OrderItem.php
Sets an order item data value with the given key.

File

modules/order/src/Entity/OrderItemInterface.php, line 197

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function setData($key, $value);