Log in
Interface

WebsiteInterface

Magento\Store\Api\Data\WebsiteInterface

What it does

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

Developers use this interface to retrieve or set website properties like ID, code, name, and default store group when working with multi-website configurations.

It's essential for managing website-level settings, configurations, and store hierarchy operations.

Public Methods

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