Log in
Interface

LocatorInterface

Magento\Catalog\Model\Locator\LocatorInterface

What it does

This interface defines a contract for locating and retrieving catalog-related context information during product operations.

Developers use implementations of this interface to access the current product being worked on, along with its associated store, website IDs, and base currency code.

It's commonly used in product forms, UI components, and data providers to maintain consistent access to product context throughout the application.

Public Methods

  • getProduct()
  • getStore()
  • getWebsiteIds()
  • getBaseCurrencyCode()