You are here

public function InvoiceFileManagerInterface::getInvoiceFile in Commerce Invoice 8.2

Get the file for an invoice.

If the file does not exist, a new PDF file is generated, and the reference field on the invoice is set.

Parameters

\Drupal\commerce_invoice\Entity\InvoiceInterface $invoice: The invoice.

Throws

\Symfony\Component\HttpKernel\Exception\NotFoundHttpException Thrown when the file was not found and could not be generated.

1 method overrides InvoiceFileManagerInterface::getInvoiceFile()
InvoiceFileManager::getInvoiceFile in src/InvoiceFileManager.php
Download an invoice file.

File

src/InvoiceFileManagerInterface.php, line 24

Class

InvoiceFileManagerInterface
Manages the invoice file.

Namespace

Drupal\commerce_invoice

Code

public function getInvoiceFile(InvoiceInterface $invoice);