Log in
Model

SaveContentAssetLinks

Magento\MediaContent\Model\SaveContentAssetLinks

What it does

This class saves relationships between media assets (images, videos) and the content entities where they are used in Magento 2.

Developers use this when they need to track which media files are referenced in products, CMS pages, categories, or other content types, enabling features like media usage tracking and cleanup of unused assets.

Public Methods

  • execute()