Log in
Model

StoreScopeProvider

Magento\Store\Model\StoreScopeProvider

What it does

This class provides store-level scope context for entities in Magento 2.

It determines which store an entity belongs to by checking entity data for a store ID or falling back to the current store, and creates a scope object with proper fallback to the default store.

Developers use this when working with store-specific configurations or data that needs proper scope resolution.

Public Methods

  • getContext()