You are here

public function ShipmentInterface::getData in Commerce Shipping 8.2

Gets a shipment data value with the given key.

Used to store temporary data.

Parameters

string $key: The key.

mixed $default: The default value.

Return value

array The shipment data.

1 method overrides ShipmentInterface::getData()
Shipment::getData in src/Entity/Shipment.php
Gets a shipment data value with the given key.

File

src/Entity/ShipmentInterface.php, line 348

Class

ShipmentInterface
Defines the interface for shipments.

Namespace

Drupal\commerce_shipping\Entity

Code

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