Log in
Interface

SaveAssetsKeywordsInterface

Magento\MediaGalleryApi\Api\SaveAssetsKeywordsInterface

What it does

This interface defines a contract for saving keywords/tags associated with media gallery assets in Magento 2.

Developers implement or use this interface when they need to programmatically add or update keywords for media assets, such as images in the admin gallery.

It accepts an array of AssetKeywordsInterface objects and persists them to the database.

Public Methods

  • execute()