Log in
Model

OptionManagement

Magento\Eav\Model\Entity\Attribute\OptionManagement

What it does

This class manages attribute options for EAV (Entity-Attribute-Value) attributes in Magento 2.

Developers use it to programmatically add, update, delete, and retrieve options for select/multiselect attributes like dropdown menus.

It handles validation, ensuring unique labels and proper option IDs, making it essential for customizing product attributes, customer attributes, or any EAV-based entity options.

Public Methods

  • add()
  • update()
  • delete()
  • getItems()