DateType
Magento\CatalogGraphQl\Model\Product\Option\DateType
What it does
This class handles date-type product options specifically for GraphQL API requests in Magento 2.
It formats and validates date values submitted through GraphQL queries, converting string datetime values into the array format expected by Magento's product option system.
Developers would use this when implementing custom product options with date/time fields that need to work with GraphQL endpoints.
Public Methods
- validateUserValue()
- useCalendar()