Attribute
Magento\Catalog\Model\Entity\Attribute
What it does
This class extends Magento's EAV attribute model specifically for catalog entities (products, categories).
Developers use this when creating or managing custom product/category attributes, as it handles attribute validation, locking rules, and ensures proper event dispatching during save operations.
It provides additional catalog-specific functionality like search weight, filtering options, and price rule usage that aren't available in the base EAV attribute model.
Public Methods
- beforeSave()
- afterSave()