Log in
Model

Attribute\Repository

Magento\Catalog\Model\Product\Attribute\Repository

What it does

This repository class manages product attributes in Magento 2's catalog system.

Developers use it to create, retrieve, update, and delete product attributes programmatically through the API.

It handles validation of attribute properties like input types, frontend labels, and attribute codes, making it the primary interface for attribute management operations.

Public Methods

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