Model
Scopes
Magento\Catalog\Model\Attribute\Source\Scopes
What it does
This class provides a list of attribute scope options used in Magento 2's catalog system.
Developers use this when configuring product attributes to determine at which level (store view, website, or global) an attribute's value can be set and managed.
It implements OptionSourceInterface to supply options for admin dropdown fields where scope selection is needed.
Public Methods
- toOptionArray()