Log in
Interface

SaveContentAssetLinksInterface

Magento\MediaContentApi\Api\SaveContentAssetLinksInterface

What it does

This interface defines a contract for saving relationships between media assets and content in Magento 2.

Developers implement this interface when they need to track which media files (images, videos) are used in content entities like products, categories, or CMS pages.

It's typically used during content save operations to maintain accurate media asset usage records.

Public Methods

  • execute()