How to get all attribute set list Magento 2?

You can see all the Attribute Set lists from the Admin Panel. Store -> Properties -> Attribute Set.

You can explore all the attribute-set lists programmatically by the Magento\Catalog\Api\AttributeSetRepositoryInterface.

Retrieve all the attribute lists of the system by first create an object of the Search Criteria builder, Pass the object to the getList() method of the above interface.

You can retrieve all the list of attributes set using the for each loop.

Output:
List of all the attribute sets.

Leave a Reply