Log in
Model

OptionRepository

Magento\ConfigurableProduct\Model\OptionRepository

What it does

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

Developers use it to programmatically create, retrieve, update, or delete the attribute-based options that define configurable product variations through API or service layer interactions.

Public Methods

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