InvoiceFileManagerInterface.php in Commerce Invoice 8.2
Namespace
Drupal\commerce_invoiceFile
src/InvoiceFileManagerInterface.phpView source
<?php
namespace Drupal\commerce_invoice;
use Drupal\commerce_invoice\Entity\InvoiceInterface;
/**
* Manages the invoice file.
*/
interface InvoiceFileManagerInterface {
/**
* 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.
*
* @param \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.
*/
public function getInvoiceFile(InvoiceInterface $invoice);
}
Interfaces
Name![]() |
Description |
---|---|
InvoiceFileManagerInterface | Manages the invoice file. |