Log in
Model

Options

Magento\Catalog\Model\Product\AttributeSet\Options

What it does

This class provides a list of available attribute sets for products in Magento 2, formatted as an options array.

Developers use this class when they need to populate dropdowns or select fields with product attribute set options, such as in admin forms, UI components, or custom modules that need to display or filter by attribute sets.

Public Methods

  • toOptionArray()