Model
AttributeOptions
Magento\EavGraphQl\Model\Resolver\DataProvider\AttributeOptions
What it does
This data provider class retrieves attribute options for EAV (Entity-Attribute-Value) attributes to be used in GraphQL queries.
Developers use this when they need to fetch dropdown or multiselect attribute options for entities like products or customers in GraphQL responses.
It filters out empty options and returns a clean array of label-value pairs.
Public Methods
- getData()