public function InvoiceItemInterface::setData in Commerce Invoice 8.2
Sets an invoice item data value with the given key.
Parameters
string $key: The key.
mixed $value: The value.
Return value
$this
1 method overrides InvoiceItemInterface::setData()
- InvoiceItem::setData in src/
Entity/ InvoiceItem.php - Sets an invoice item data value with the given key.
File
- src/
Entity/ InvoiceItemInterface.php, line 187
Class
- InvoiceItemInterface
- Defines the interface for invoice items.
Namespace
Drupal\commerce_invoice\EntityCode
public function setData($key, $value);