abstract protected function SequentialNumberPatternBase::shouldReset in Commerce Core 8.2
Gets whether the sequence should be reset.
Parameters
\Drupal\commerce_number_pattern\Sequence $current_sequence: The current sequence.
Return value
bool TRUE if the sequence should be reset, FALSE otherwise.
1 call to SequentialNumberPatternBase::shouldReset()
- SequentialNumberPatternBase::getNextSequence in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ SequentialNumberPatternBase.php - Gets the next sequence for the given entity.
3 methods override SequentialNumberPatternBase::shouldReset()
- Infinite::shouldReset in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ Infinite.php - Gets whether the sequence should be reset.
- Monthly::shouldReset in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ Monthly.php - Gets whether the sequence should be reset.
- Yearly::shouldReset in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ Yearly.php - Gets whether the sequence should be reset.
File
- modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ SequentialNumberPatternBase.php, line 297
Class
- SequentialNumberPatternBase
- Provides a base class for number pattern plugins which support sequences.
Namespace
Drupal\commerce_number_pattern\Plugin\Commerce\NumberPatternCode
protected abstract function shouldReset(Sequence $current_sequence);