ContentAssetLinkInterface
Magento\MediaContentApi\Api\Data\ContentAssetLinkInterface
What it does
This interface defines a data contract for linking media assets to content entities in Magento 2.
Developers use it when working with the Media Gallery feature to establish relationships between content (like product descriptions, CMS pages) and media assets (images, videos).
It provides methods to retrieve the content identifier and associated asset ID, enabling tracking of where media files are used throughout the system.
Public Methods
- getContentId()
- getAssetId()
- getExtensionAttributes()
- setExtensionAttributes()