public function SequentialNumberPatternInterface::getCurrentSequence in Commerce Core 8.2
Gets the current sequence for the given entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.
Return value
\Drupal\commerce_number_pattern\Sequence|null The current sequence, or NULL if none found.
1 method overrides SequentialNumberPatternInterface::getCurrentSequence()
- SequentialNumberPatternBase::getCurrentSequence in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ SequentialNumberPatternBase.php - Gets the current sequence for the given entity.
File
- modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ SequentialNumberPatternInterface.php, line 32
Class
- SequentialNumberPatternInterface
- Defines the interface for number pattern which support sequences.
Namespace
Drupal\commerce_number_pattern\Plugin\Commerce\NumberPatternCode
public function getCurrentSequence(ContentEntityInterface $entity);