You are here

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\Entity

Code

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