Model
GetWebsiteIdByWebsiteCode
Magento\InventorySales\Model\ResourceModel\GetWebsiteIdByWebsiteCode
What it does
This class retrieves a website ID from the database using a website code as the lookup parameter.
Developers use this when they need to convert a website code (string identifier) into its corresponding numeric website ID, which is commonly needed for inventory and sales operations that work across multiple websites in a Magento installation.
Public Methods
- execute()