Log in
Model

InsertImageData

Magento\MediaGalleryUi\Model\InsertImageData

What it does

This class is a data transfer object (DTO) that encapsulates information about an image being inserted into content, such as in a WYSIWYG editor.

Developers use this class to pass image details (content/HTML, file size, and MIME type) when integrating images from the Media Gallery into editable content areas.

It implements the InsertImageDataInterface and provides getter/setter methods for accessing image properties and extension attributes.

Public Methods

  • getContent()
  • getSize()
  • getType()
  • getExtensionAttributes()
  • setExtensionAttributes()