Log in
Interface

RedirectDataInterface

Magento\Store\Model\StoreSwitcher\RedirectDataInterface

What it does

This interface defines the contract for handling secure data transfer when customers switch between different store views in Magento 2.

Developers use this to ensure customer session data, cart contents, or other temporary information is safely passed between stores with timestamp validation and signature verification.

It's particularly useful when implementing custom store switcher functionality that needs to maintain user context across different store views or websites.

Public Methods

  • getSignature()
  • getData()
  • getTimestamp()