Log in
Model

HashData

Magento\Store\Model\StoreSwitcher\HashGenerator\HashData

What it does

This class is a data object used during store switching operations to encapsulate information needed for generating one-time security tokens.

Developers would use this when implementing or extending store switcher functionality to securely pass customer context (customer ID, timestamp, and origin store code) between different store views in a multi-store Magento installation.

Public Methods

  • getCustomerId()
  • getTimestamp()
  • getFromStoreCode()