Log in
Repository

ProductAttributeRepositoryInterface

Magento\Catalog\Api\ProductAttributeRepositoryInterface

What it does

This interface defines the contract for managing product attributes in Magento 2.

Developers use this repository to retrieve, create, update, and delete product attributes programmatically, either individually by attribute code or in bulk using search criteria.

It's the primary API service for working with product attribute data in a standardized way.

Public Methods

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