You are here

public function InvoiceInterface::getData in Commerce Invoice 8.2

Gets an invoice data value with the given key.

Used to store temporary data.

Parameters

string $key: The key.

mixed $default: The default value.

Return value

mixed The value.

1 method overrides InvoiceInterface::getData()
Invoice::getData in src/Entity/Invoice.php
Gets an invoice data value with the given key.

File

src/Entity/InvoiceInterface.php, line 310

Class

InvoiceInterface
Defines the interface for invoices.

Namespace

Drupal\commerce_invoice\Entity

Code

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