Log in
Model

Get

Magento\Inventory\Model\Source\Command\Get

What it does

This class retrieves a single inventory source by its unique source code.

Developers use this when they need to fetch detailed information about a specific inventory location (warehouse, store, etc.) in Magento's Multi-Source Inventory system.

It throws an exception if the source doesn't exist, making it useful for validating source existence.

Public Methods

  • execute()