Log in
Model

SourceRepository

Magento\Inventory\Model\SourceRepository

What it does

This repository class manages CRUD operations for inventory sources in Magento 2's Multi-Source Inventory (MSI) system.

Developers use this class to save new sources, retrieve a specific source by code, or get a filtered list of sources.

It follows the repository pattern by delegating actual operations to command classes, providing a clean API for inventory source management.

Public Methods

  • save()
  • get()
  • getList()