Log in
Model

Website

Magento\Store\Model\ResourceModel\Website

What it does

This resource model manages database operations for Magento websites (the highest level in Magento's store hierarchy).

Developers use this class when they need to retrieve website data, validate website codes, manage default websites, or perform custom database queries on the store_website table.

It handles data integrity by enforcing unique website codes and cleaning up related configuration data when websites are deleted.

Public Methods

  • readAllWebsites()
  • getDefaultStoresSelect()
  • countAll()