You are here

public function InvoicePrintBuilderInterface::savePrintable in Commerce Invoice 8.2

Renders the invoice as a printed document and save to disk.

Parameters

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

\Drupal\entity_print\Plugin\PrintEngineInterface $print_engine: The print engine plugin to use.

string $scheme: (optional) The Drupal scheme, defaults to 'private'.

Return value

\Drupal\file\FileInterface|null The invoice PDF file, FALSE it could not be created.

1 method overrides InvoicePrintBuilderInterface::savePrintable()
InvoicePrintBuilder::savePrintable in src/InvoicePrintBuilder.php
Renders the invoice as a printed document and save to disk.

File

src/InvoicePrintBuilderInterface.php, line 37

Class

InvoicePrintBuilderInterface
Handles generating PDFS for invoices.

Namespace

Drupal\commerce_invoice

Code

public function savePrintable(InvoiceInterface $invoice, PrintEngineInterface $print_engine, $scheme = 'private');