Log in
Model

ScopeResolver

Magento\Store\Model\ScopeResolver

What it does

This class determines whether a given scope (website, store, or store view) belongs to or is a child of another scope in Magento's hierarchical store structure.

Developers use this to verify scope relationships when checking permissions, applying configurations, or validating that operations should apply to specific store contexts.

For example, checking if a particular store view belongs to a specific website.

Public Methods

  • isBelongsToScope()