Log in
Interface

StoreInterface

Magento\Store\Api\Data\StoreInterface

What it does

This interface defines the contract for Store data objects in Magento 2's multi-store architecture.

Developers use this interface to retrieve and manipulate store information such as store ID, code, name, website association, store group, and active status.

It's commonly used when working with store-specific configurations, switching store contexts, or implementing store-aware functionality in custom modules.

Public Methods

  • getId()
  • setId()
  • getCode()
  • setCode()
  • getName()
  • setName()
  • getWebsiteId()
  • setWebsiteId()
  • getStoreGroupId()
  • setIsActive()
  • getIsActive()
  • setStoreGroupId()
  • getExtensionAttributes()
  • setExtensionAttributes()