Model
Asset
Magento\MediaGallery\Model\Asset
What it does
This class represents a media asset in Magento's Media Gallery system.
Developers use it to store and retrieve information about uploaded media files including metadata like dimensions, file size, content type, title, description, and timestamps.
It's commonly used when working with images or other media in the admin panel or when integrating with the Media Gallery API.
Public Methods
- getId()
- getPath()
- getTitle()
- getDescription()
- getSource()
- getHash()
- getContentType()
- getWidth()
- getHeight()
- getSize()
- getCreatedAt()
- getUpdatedAt()
- getExtensionAttributes()
- setExtensionAttributes()