Helper
Storage
Magento\Theme\Helper\Storage
What it does
This helper class manages the storage and retrieval of media files (images and fonts) used in theme customization.
Developers use it when working with the theme editor to handle file paths, convert between IDs and paths, generate thumbnails, and validate file types for theme assets stored in the media directory.
Public Methods
- convertPathToId()
- convertIdToPath()
- getShortFilename()
- getStorageRoot()
- getStorageType()
- getRelativeUrl()
- getCurrentPath()
- getThumbnailDirectory()
- getThumbnailPath()
- getRequestParams()
- getAllowedExtensionsByType()
- getStorageTypeName()
- getSession()