Log in
Interface

GetAssetIdsByContentIdentityInterface

Magento\MediaContentApi\Api\GetAssetIdsByContentIdentityInterface

What it does

This interface defines a contract for retrieving media asset IDs that are associated with a specific piece of content in Magento 2.

Developers use this when they need to find all media assets (images, videos, etc.) referenced within a particular content entity like a product description, CMS page, or block.

It's essential for media tracking, cleanup operations, and understanding content-media relationships.

Public Methods

  • execute()