Log in
Model

ProductVariationsBuilder

Magento\ConfigurableProduct\Model\ProductVariationsBuilder

What it does

This class generates simple product variations for configurable products by creating combinations of attribute values.

Developers use it when programmatically creating configurable products to automatically generate all possible child products based on selected attributes (like size and color combinations), setting each variation with appropriate SKU, name, and attribute values.

Public Methods

  • create()