Model
CompareListIdToMaskedListId
Magento\Catalog\Model\CompareListIdToMaskedListId
What it does
This class converts a Compare List ID to its masked (public) ID format, typically used for GraphQL or public API responses.
Developers use this when they need to expose a compare list identifier publicly while keeping the internal database ID hidden.
It includes customer authorization validation to ensure only the list owner can access the masked ID.
Public Methods
- execute()