Interface
AssetInterface
Magento\MediaGalleryApi\Api\Data\AssetInterface
What it does
This interface defines the contract for media gallery asset data objects in Magento 2.
Developers use it to work with media assets (images, videos) stored in the media gallery, accessing properties like path, title, dimensions, content type, and metadata.
It's primarily used when retrieving or manipulating media assets through Magento's Media Gallery API.
Public Methods
- getId()
- getPath()
- getTitle()
- getDescription()
- getSource()
- getHash()
- getContentType()
- getHeight()
- getWidth()
- getSize()
- getCreatedAt()
- getUpdatedAt()
- getExtensionAttributes()
- setExtensionAttributes()