public function InvoiceInterface::setFile in Commerce Invoice 8.2
Sets the invoice file (i.e the reference to the generated PDF file).
Parameters
\Drupal\file\FileInterface $file: The invoice file.
Return value
$this
1 method overrides InvoiceInterface::setFile()
- Invoice::setFile in src/
Entity/ Invoice.php - Sets the invoice file (i.e the reference to the generated PDF file).
File
- src/
Entity/ InvoiceInterface.php, line 394
Class
- InvoiceInterface
- Defines the interface for invoices.
Namespace
Drupal\commerce_invoice\EntityCode
public function setFile(FileInterface $file);