Images
Magento\Cms\Helper\Wysiwyg\Images
What it does
This helper class manages the WYSIWYG image directory structure and URL generation for Magento's CMS image browser.
Developers use it to handle image paths, encode/decode directory IDs for the file tree navigation, generate proper media URLs, and insert image HTML declarations into WYSIWYG editors.
It provides utilities for converting between file system paths and browser-safe identifiers while ensuring users stay within allowed storage boundaries.
Public Methods
- setStoreId()
- getStorageRoot()
- getStorageRootSubpath()
- getBaseUrl()
- getTreeNodeName()
- convertPathToId()
- convertIdToPath()
- isUsingStaticUrlsAllowed()
- getImageHtmlDeclaration()
- getCurrentPath()
- getCurrentUrl()
- idEncode()
- idDecode()
- getShortFilename()
- setImageDirectorySubpath()