Log in
Model

StoreScopeProvider

Magento\Store\Model\StoreScopeProvider

What it does

This class provides store scope context for entity operations in Magento 2.

Developers use it to retrieve the current store scope (store view level) when working with entities that need to be aware of which store they belong to.

It automatically falls back to the default store (admin/global scope) when needed, making it essential for multi-store configurations.

Public Methods

  • getContext()