You are here

public function InvoiceNumber::__toString in Commerce Invoice 7.2

Magic method to convert the invoice number to a string.

Return value

string

See also

theme_commerce_invoice_number()

File

src/InvoiceNumber/InvoiceNumber.php, line 59
Invoice Number

Class

InvoiceNumber

Namespace

Drupal\commerce_invoice\InvoiceNumber

Code

public function __toString() {
  return theme('commerce_invoice_number', [
    'invoice_number' => $this,
    'sanitize' => FALSE,
  ]);
}