Helper
Images
Magento\Cms\Helper\Wysiwyg\Images
What it does
This helper class manages WYSIWYG editor image operations in Magento 2's CMS module.
Developers use it to handle image paths, URLs, and file storage operations when working with media gallery images in the admin panel, including encoding/decoding paths, generating image HTML declarations, and managing the current directory context for image browsing.
Public Methods
- setStoreId()
- getStorageRoot()
- getStorageRootSubpath()
- getBaseUrl()
- getTreeNodeName()
- convertPathToId()
- convertIdToPath()
- isUsingStaticUrlsAllowed()
- getImageHtmlDeclaration()
- getCurrentPath()
- getCurrentUrl()
- idEncode()
- idDecode()
- getShortFilename()
- setImageDirectorySubpath()