Model
Option
Magento\Eav\Model\Entity\Attribute\Option
What it does
This model represents an option for an EAV attribute, such as dropdown or multiselect values.
Developers use this class when working with attribute options programmatically, such as creating color swatches, size options, or any custom attribute choices.
It provides methods to get and set option properties like label, value, sort order, default status, and store-specific labels.
Public Methods
- _construct()
- getLabel()
- getValue()
- getSortOrder()
- getIsDefault()
- getStoreLabels()
- setLabel()
- setValue()
- setSortOrder()
- setIsDefault()
- setStoreLabels()