Log in
Interface

ExtractAssetsFromContentInterface

Magento\MediaContentApi\Api\ExtractAssetsFromContentInterface

What it does

This interface defines a contract for extracting media asset references from content strings.

Developers use this when they need to parse HTML, text, or other content to identify and retrieve all media gallery assets (images, videos, etc.) that are referenced within that content.

This is commonly used in scenarios like content migration, asset dependency tracking, or media cleanup operations.

Public Methods

  • execute()