public function Invoice::getInvoiceDateTime in Commerce Invoice 8.2
Gets the invoice date timestamp.
Return value
int Date timestamp of the invoice.
Overrides InvoiceInterface::getInvoiceDateTime
1 call to Invoice::getInvoiceDateTime()
- Invoice::preSave in src/
Entity/ Invoice.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Invoice.php, line 524
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function getInvoiceDateTime() {
return $this
->get('invoice_date')->value;
}