public function InvoiceFilenameEvent::__construct in Commerce Invoice 8.2
Constructs a new InvoiceFilenameEvent.
Parameters
string $filename: The invoice filename.
\Drupal\commerce_invoice\Entity\InvoiceInterface $invoice: The invoice.
File
- src/
Event/ InvoiceFilenameEvent.php, line 37
Class
- InvoiceFilenameEvent
- Defines the invoice filename event.
Namespace
Drupal\commerce_invoice\EventCode
public function __construct($filename, InvoiceInterface $invoice) {
$this->filename = $filename;
$this->invoice = $invoice;
}