Log in
Interface

GroupInterface

Magento\Store\Api\Data\GroupInterface

What it does

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

A Store Group sits between a Website and Store Views, containing properties like name, code, root category, and default store.

Developers use this interface when working with store group data through APIs or repositories to retrieve or manipulate store group information programmatically.

Public Methods

  • getId()
  • setId()
  • getWebsiteId()
  • setWebsiteId()
  • getRootCategoryId()
  • setRootCategoryId()
  • getDefaultStoreId()
  • setDefaultStoreId()
  • getName()
  • setName()
  • getCode()
  • setCode()
  • getExtensionAttributes()
  • setExtensionAttributes()