Log in
Model

Build

Magento\Catalog\Model\Product\AttributeSet\Build

What it does

This class is a builder utility for creating new product attribute sets in Magento 2.

Developers use it to programmatically create attribute sets based on an existing skeleton (template), ensuring proper validation and preventing duplicates.

It's commonly used during module installation, data patches, or when extending catalog functionality that requires new attribute sets.

Public Methods

  • setEntityTypeId()
  • setSkeletonId()
  • setName()
  • getAttributeSet()