You are here

public function OrderType::setNumberPatternId in Commerce Core 8.2

Sets the order type's number pattern ID.

Parameters

string $number_pattern_id: The number pattern ID.

Return value

$this

Overrides OrderTypeInterface::setNumberPatternId

File

modules/order/src/Entity/OrderType.php, line 145

Class

OrderType
Defines the order type entity class.

Namespace

Drupal\commerce_order\Entity

Code

public function setNumberPatternId($number_pattern_id) {
  $this->numberPattern = $number_pattern_id;
  return $this;
}