Log in
Interface

GetAssetIdsByContentFieldInterface

Magento\MediaContentApi\Api\GetAssetIdsByContentFieldInterface

What it does

This interface defines a contract for retrieving media asset IDs based on content field values.

Developers use this when they need to find which media assets are referenced within specific content fields, such as finding all images used in product descriptions or CMS pages.

It's particularly useful for media management, cleanup operations, or analyzing media usage across the Magento store.

Public Methods

  • execute()