You are here

public function OrderInterface::getData in Commerce Core 8.2

Gets an order 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 OrderInterface::getData()
Order::getData in modules/order/src/Entity/Order.php
Gets an order data value with the given key.

File

modules/order/src/Entity/OrderInterface.php, line 359

Class

OrderInterface
Defines the interface for orders.

Namespace

Drupal\commerce_order\Entity

Code

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