Log in
Model

GetAssetById

Magento\AdobeStockAsset\Model\GetAssetById

What it does

This service class retrieves a single Adobe Stock asset by its unique Adobe ID (media_id).

Developers use this when they need to fetch detailed information about a specific Adobe Stock asset from Magento's database, such as when displaying asset details or processing a previously saved stock image.

It throws an exception if the asset doesn't exist or if multiple assets are found with the same ID.

Public Methods

  • execute()