Log in
Model

OptionManagement

Magento\Catalog\Model\Product\Attribute\OptionManagement

What it does

This class manages options for product attributes (like color, size, etc.) in Magento 2.

Developers use it to programmatically add, retrieve, update, or delete dropdown/select attribute options for products.

It acts as a product-specific wrapper around Magento's generic EAV attribute option management system.

Public Methods

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