Model
UpdateContentAssetLinks
Magento\MediaContent\Model\UpdateContentAssetLinks
What it does
This class synchronizes the relationships between media assets (images, videos) and content entities (products, pages, blocks) by comparing current assets in content with existing database links.
Developers use this when content is saved or updated to ensure asset references are accurately tracked, creating new links for added assets and removing links for assets no longer present in the content.
Public Methods
- execute()