Log in
Model

DefaultStoreScopeProvider

Magento\Store\Model\DefaultStoreScopeProvider

What it does

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

Developers use this when they need to ensure operations are performed in the context of the default store (store ID 0), regardless of the current store view.

It's particularly useful for backend operations or when working with entities that should use default store values.

Public Methods

  • getContext()