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\EntityCode
public function getNumberPattern() {
if ($this
->getNumberPatternId()) {
return NumberPattern::load($this
->getNumberPatternId());
}
}