Log in
Interface

StateKeyInterface

Magento\Catalog\Model\Layer\StateKeyInterface

What it does

This interface defines a contract for generating unique state keys for Magento's catalog layer.

Developers implement this interface to create string identifiers that represent the current state of a category layer, which is useful for caching and tracking different filtered/sorted views of product listings.

The generated key helps Magento distinguish between different layer states to provide appropriate cached results.

Public Methods

  • toString()