public function CommerceAutoSkuGeneratorInterface::generate in Commerce AutoSKU 8.2
Generated SKU getter.
Parameters
\Drupal\commerce_product\Entity\ProductVariationInterface $entity: Entity SKU generated for.
Return value
string Generated SKU for giv.
1 method overrides CommerceAutoSkuGeneratorInterface::generate()
- CommerceAutoSkuGeneratorBase::generate in src/
Plugin/ CommerceAutoSkuGenerator/ CommerceAutoSkuGeneratorBase.php - Generates the SKU according to the settings.
File
- src/
Plugin/ CommerceAutoSkuGenerator/ CommerceAutoSkuGeneratorInterface.php, line 30
Class
- CommerceAutoSkuGeneratorInterface
- Places an order through a series of steps.
Namespace
Drupal\commerce_autosku\Plugin\CommerceAutoSkuGeneratorCode
public function generate(ProductVariationInterface $entity);