public function ProductVariationInterface::setSku in Commerce Core 8.2
Set the variation SKU.
Parameters
string $sku: The variation SKU.
Return value
$this
1 method overrides ProductVariationInterface::setSku()
- ProductVariation::setSku in modules/
product/ src/ Entity/ ProductVariation.php - Set the variation SKU.
File
- modules/
product/ src/ Entity/ ProductVariationInterface.php, line 48
Class
- ProductVariationInterface
- Defines the interface for product variations.
Namespace
Drupal\commerce_product\EntityCode
public function setSku($sku);