You are here

public function InvoiceType::getNumberPattern in Commerce Invoice 8.2

Gets the invoice type's number pattern.

Return value

\Drupal\commerce_number_pattern\Entity\NumberPatternInterface The invoice type number pattern.

Overrides InvoiceTypeInterface::getNumberPattern

File

src/Entity/InvoiceType.php, line 128

Class

InvoiceType
Defines the invoice type entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getNumberPattern() {
  if ($this
    ->getNumberPatternId()) {
    return NumberPattern::load($this
      ->getNumberPatternId());
  }
}