Log in
Interface

GroupInterface

Magento\Store\Api\Data\GroupInterface

What it does

This interface defines the data structure for a Store Group in Magento 2's multi-store hierarchy.

Developers use this when working with store groups programmatically to access or modify properties like website ID, root category, default store, name, and unique code.

It's essential for managing the relationship between websites, store groups, and store views in custom modules or API integrations.

Public Methods

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