You are here

protected function Invoice::defaultLabel in Commerce Invoice 7.2

File

src/Entity/Invoice.php, line 94
Invoice entity.

Class

Invoice

Namespace

Drupal\commerce_invoice\Entity

Code

protected function defaultLabel() {
  return $this
    ->hasInvoiceNumber() ? t('Invoice @number', [
    '@number' => $this
      ->getInvoiceNumber()
      ->__toString(),
  ]) : t('Invoice');
}