Log in
Model

GetByPath

Magento\MediaGallery\Model\Asset\Command\GetByPath

What it does

This model retrieves a media gallery asset from the database using its file path.

Developers would use this class when they need to fetch complete information about an image or media file stored in Magento's media gallery by providing its path.

Note that this class is deprecated in favor of GetAssetsByPathsInterface.

Public Methods

  • execute()