Log in
Interface

WebsiteInterface

Magento\Store\Api\Data\WebsiteInterface

What it does

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

Developers use this when working with website-level operations, such as retrieving website information, managing website codes/names, or accessing the default store group.

It's commonly used in configuration, store management, and multi-website implementations.

Public Methods

  • getId()
  • setId()
  • getCode()
  • setCode()
  • getName()
  • setName()
  • getDefaultGroupId()
  • setDefaultGroupId()
  • getExtensionAttributes()
  • setExtensionAttributes()