Model
RegistryLocator
Magento\Catalog\Model\Locator\RegistryLocator
What it does
This locator class retrieves the current product and store from Magento's registry.
Developers use it when building product-related UI components or forms to access the currently edited product and its associated store context.
It provides a centralized way to fetch product, store, website IDs, and currency information during product management operations.
Public Methods
- getProduct()
- getStore()
- getWebsiteIds()
- getBaseCurrencyCode()