Log in
Interface

SaveAssetsInterface

Magento\MediaGalleryApi\Api\SaveAssetsInterface

What it does

This interface defines a contract for saving media gallery assets (images, videos, etc.) to the database in Magento 2.

Developers use this when they need to programmatically store media assets, such as during imports, custom media uploads, or when synchronizing media files with the database.

It accepts an array of asset objects and persists them for later retrieval by their file path.

Public Methods

  • execute()