Log in
Model

Store

Magento\Store\Model\ResourceModel\Store

What it does

This class handles all database operations for Magento 2 stores, including creating, reading, updating, and deleting store records.

Developers use this resource model when they need to interact with the store table directly, count stores in the system, or retrieve all store information.

It also manages related data like updating store group default stores and cleaning configuration cache when stores are modified.

Public Methods

  • countAll()
  • readAllStores()