You are here

public function SequentialNumberPatternInterface::getNextSequence in Commerce Core 8.2

Gets the next sequence for the given entity.

Parameters

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

Return value

\Drupal\commerce_number_pattern\Sequence The next sequence.

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

File

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

Class

SequentialNumberPatternInterface
Defines the interface for number pattern which support sequences.

Namespace

Drupal\commerce_number_pattern\Plugin\Commerce\NumberPattern

Code

public function getNextSequence(ContentEntityInterface $entity);