public function OrderType::getNumberPattern in Commerce Core 8.2
Gets the order type's number pattern.
Return value
\Drupal\commerce_number_pattern\Entity\NumberPatternInterface The number pattern.
Overrides OrderTypeInterface::getNumberPattern
File
- modules/
order/ src/ Entity/ OrderType.php, line 129
Class
- OrderType
- Defines the order type entity class.
Namespace
Drupal\commerce_order\EntityCode
public function getNumberPattern() {
if ($this->numberPattern) {
return NumberPattern::load($this->numberPattern);
}
}