Log in
Model

Build

Magento\Catalog\Model\Product\AttributeSet\Build

What it does

This builder class creates new EAV attribute sets for product entities in Magento 2.

It validates that an attribute set with the given name doesn't already exist, then creates it by copying the structure from a skeleton (template) attribute set.

Developers use this when programmatically creating new product attribute sets during module installation or data migrations.

Public Methods

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