Log in
Repository

AttributeSetRepositoryInterface

Magento\Catalog\Api\AttributeSetRepositoryInterface

What it does

This interface defines the contract for managing product attribute sets in Magento 2's catalog system.

Developers use this repository to create, retrieve, update, and delete attribute sets, which group related product attributes together (like 'Default', 'Clothing', 'Electronics').

It provides methods to save attribute sets, fetch them individually or as lists with search criteria, and remove them by object or ID.

Public Methods

  • save()
  • getList()
  • get()
  • delete()
  • deleteById()