public function NumberPatternInterface::generate in Commerce Core 8.2
Generates a number for the given content entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The content entity.
Return value
string The generated number.
1 method overrides NumberPatternInterface::generate()
- NumberPatternBase::generate in modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ NumberPatternBase.php - Generates a number for the given content entity.
File
- modules/
number_pattern/ src/ Plugin/ Commerce/ NumberPattern/ NumberPatternInterface.php, line 25
Class
- NumberPatternInterface
- Defines the interface for number patterns.
Namespace
Drupal\commerce_number_pattern\Plugin\Commerce\NumberPatternCode
public function generate(ContentEntityInterface $entity);