GetInterface
Magento\Inventory\Model\Source\Command\GetInterface
What it does
This interface defines a command for retrieving an inventory source by its code.
Developers would implement this interface to customize how Magento loads source data from storage, or use it through the SourceRepositoryInterface when needing to fetch source information programmatically.
It serves as an extension point (SPI) for customizing source retrieval behavior without modifying core repository logic.
Public Methods
- execute()