Log in
Model

Attribute

Magento\Catalog\Model\Entity\Attribute

What it does

This class extends Magento's base EAV attribute model specifically for catalog entities (products, categories).

Developers use this when working with product attributes, as it adds catalog-specific functionality, validates attribute locks before saving, and dispatches catalog-specific events.

It ensures proper handling of attribute properties like searchability, filterability, and visibility in product listings.

Public Methods

  • beforeSave()
  • afterSave()