Model
Scopes
Magento\Catalog\Model\Attribute\Source\Scopes
What it does
This class provides scope options for catalog attributes in Magento 2.
Developers use it when creating or configuring product attributes to determine at which level (Store View, Website, or Global) an attribute value can be set.
It's commonly used in attribute forms and configuration interfaces to populate dropdown menus with available scope options.
Public Methods
- toOptionArray()