You are here

public function OrderItemInterface::getData in Commerce Core 8.2

Gets an order item data value with the given key.

Used to store temporary data during order processing (i.e. checkout).

Parameters

string $key: The key.

mixed $default: The default value.

Return value

mixed The value.

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

File

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

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function getData($key, $default = NULL);