Log in
Model

GetInsertImageContent

Magento\Cms\Model\Wysiwyg\Images\GetInsertImageContent

What it does

This class generates the appropriate content (URL or HTML) for inserting images into WYSIWYG editors in Magento's CMS.

Developers use it when they need to programmatically insert images into content areas, whether as a simple path or as a complete HTML img tag, with support for different stores and static/dynamic URL modes.

Public Methods

  • execute()