File
Magento\Theme\Model\Theme\File
What it does
This model represents customization files associated with Magento themes, such as custom CSS or JavaScript files.
Developers use this class when programmatically managing theme customization files, including uploading, retrieving, or deleting custom files that extend or override default theme behavior.
It handles file operations through a customization service and maintains the relationship between files and their parent themes.
Public Methods
- setCustomizationService()
- getCustomizationService()
- setTheme()
- getTheme()
- setFileName()
- getFileName()
- getFullPath()
- getContent()
- getFileInfo()
- beforeSave()
- beforeDelete()