Model
ContentAssetLink
Magento\MediaContent\Model\ContentAssetLink
What it does
This class represents a relationship between a media asset and content in Magento 2.
Developers use this model to track which media files (images, videos) are associated with specific content entities like products, categories, or CMS pages.
It's primarily used when managing media gallery assets and determining where specific media files are being used throughout the system.
Public Methods
- getAssetId()
- getContentId()
- getExtensionAttributes()
- setExtensionAttributes()