public function InvoiceItem::setFormat in Commerce Invoice 8.2
Sets the text format name for the invoice item description.
Parameters
string $format: The text format name.
Return value
$this
Overrides InvoiceItemInterface::setFormat
File
- src/
Entity/ InvoiceItem.php, line 107
Class
- InvoiceItem
- Defines the invoice item entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function setFormat($format) {
$this
->get('description')->format = $format;
return $this;
}