You are here

public function SequentialNumberPatternInterface::getInitialSequence in Commerce Core 8.2

Gets the initial sequence for the given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.

Return value

\Drupal\commerce_number_pattern\Sequence The initial sequence.

1 method overrides SequentialNumberPatternInterface::getInitialSequence()
SequentialNumberPatternBase::getInitialSequence in modules/number_pattern/src/Plugin/Commerce/NumberPattern/SequentialNumberPatternBase.php
Gets the initial sequence for the given entity.

File

modules/number_pattern/src/Plugin/Commerce/NumberPattern/SequentialNumberPatternInterface.php, line 21

Class

SequentialNumberPatternInterface
Defines the interface for number pattern which support sequences.

Namespace

Drupal\commerce_number_pattern\Plugin\Commerce\NumberPattern

Code

public function getInitialSequence(ContentEntityInterface $entity);