Log in
Model

UpdateAsset

Magento\MediaGalleryUi\Model\UpdateAsset

What it does

This class handles updating media gallery asset information in Magento 2.

Developers use it when they need to programmatically update asset metadata like title, description, and keywords for images or other media files in the admin media gallery.

It coordinates saving changes to both the database and the actual file metadata.

Public Methods

  • execute()