public function InvoiceItemInterface::getData in Commerce Invoice 8.2
Gets an invoice item 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 InvoiceItemInterface::getData()
- InvoiceItem::getData in src/
Entity/ InvoiceItem.php - Gets an invoice item data value with the given key.
File
- src/
Entity/ InvoiceItemInterface.php, line 175
Class
- InvoiceItemInterface
- Defines the interface for invoice items.
Namespace
Drupal\commerce_invoice\EntityCode
public function getData($key, $default = NULL);