public static function BulkVariationsCreatorInterface::getAutoSku in Commerce Bulk 8
Default value callback for the 'sku' base field definition.
Parameters
\Drupal\commerce_product\Entity\ProductVariation $variation: The commerce product variation.
Return value
string An optionally prefixed/suffixed unique identifier based on settings of the widget of the field and current time in microseconds.
See also
\Drupal\commerce_product\Entity\ProductVariation::baseFieldDefinitions()
http://php.net/manual/en/function.uniqid.php
1 method overrides BulkVariationsCreatorInterface::getAutoSku()
- BulkVariationsCreator::getAutoSku in src/
BulkVariationsCreator.php - Default value callback for the 'sku' base field definition.
File
- src/
BulkVariationsCreatorInterface.php, line 62
Class
- BulkVariationsCreatorInterface
- Manages variation combinations creation.
Namespace
Drupal\commerce_bulkCode
public static function getAutoSku(ProductVariation $variation);