Log in
Model

Website

Magento\Store\Model\Resolver\Website

What it does

This class resolves and retrieves website scope information in Magento 2.

Developers use it to get a specific website by ID or retrieve all available websites in the system, typically when working with multi-website configurations or when scope-specific data is needed.

It implements the ScopeResolverInterface to provide a standardized way to access website-level scope objects.

Public Methods

  • getScope()
  • getScopes()