Path
Magento\Theme\Model\Theme\Image\Path
What it does
This class manages file paths and URLs for theme preview images in Magento 2.
Developers use it to retrieve URLs for displaying theme previews in the admin panel, get file system paths for storing/accessing preview images, and obtain the default preview image when a custom one isn't set.
It handles both custom theme preview images stored in media directory and the default fallback preview image.
Public Methods
- getPreviewImageUrl()
- getPreviewImagePath()
- getPreviewImageDefaultUrl()
- getImagePreviewDirectory()
- getTemporaryDirectory()