Log in
Interface

StoreInterface

Magento\Store\Api\Data\StoreInterface

What it does

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

Developers use this to interact with store data through service contracts, including store ID, code, name, website association, and store group membership.

It's primarily used when working with store configurations programmatically or building custom store-related functionality.

Public Methods

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