Interface
GetByIdInterface
Magento\MediaGalleryApi\Model\Asset\Command\GetByIdInterface
What it does
This interface defines a command for retrieving a single media gallery asset by its ID.
Developers would use implementations of this interface when they need to fetch detailed information about a specific media asset stored in Magento's media gallery.
Note that this interface is deprecated in favor of GetAssetsByIdsInterface which supports batch retrieval.
Public Methods
- execute()