You are here

interface InvoiceFileManagerInterface in Commerce Invoice 8.2

Manages the invoice file.

Hierarchy

Expanded class hierarchy of InvoiceFileManagerInterface

All classes that implement InvoiceFileManagerInterface

2 files declare their use of InvoiceFileManagerInterface
InvoiceConfirmationMail.php in src/Mail/InvoiceConfirmationMail.php
InvoiceController.php in src/Controller/InvoiceController.php

File

src/InvoiceFileManagerInterface.php, line 10

Namespace

Drupal\commerce_invoice
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
InvoiceFileManagerInterface::getInvoiceFile public function Get the file for an invoice. 1