Log in
Model

GetById

Magento\MediaGallery\Model\Asset\Command\GetById

What it does

This class retrieves a media gallery asset from the database by its ID.

Developers use it to fetch complete asset information including path, title, dimensions, and metadata when they need to work with a specific media file.

It's deprecated and should be replaced with GetAssetsByIdsInterface for new implementations.

Public Methods

  • execute()