Log in
Model

CompareListIdToMaskedListId

Magento\Catalog\Model\CompareListIdToMaskedListId

What it does

This class retrieves the masked (hashed) ID of a product compare list given its numeric database ID.

Developers use this when working with GraphQL or public APIs where exposing internal database IDs is not desirable, and authorization checks ensure customers can only access their own compare lists.

Public Methods

  • execute()