Log in
Model

SelectionUidFormatter

Magento\ConfigurableProductGraphQl\Model\Options\SelectionUidFormatter

What it does

This class handles encoding and decoding of unique identifiers (UIDs) for configurable product option selections in GraphQL responses.

Developers use this to convert attribute IDs and option values into base64-encoded UIDs for GraphQL output, and to decode those UIDs back into their component parts when processing GraphQL mutations or queries involving configurable product selections.

Public Methods

  • encode()
  • extract()