Log in
Model

OptionValue

Magento\ConfigurableProductGraphQl\Model\Formatter\OptionValue

What it does

This class formats configurable product option values (like size or color choices) for GraphQL API responses.

Developers use this when building or extending GraphQL queries that need to display available product options with their availability status, labels, and unique identifiers.

It transforms raw option data into a structured format that matches the GraphQL schema requirements.

Public Methods

  • format()