ThemeSettingsManager
class ThemeSettingsManager implements BasicEntityManagerInterface
Class ThemeSettingsManager is injected as alligator.theme.settings.manager service. ThemeSettingsManager handles the logic for managed entity.
Constants
| THEME_DIR |
Themes Dir location |
| WEB_RESOURCE_DIR |
Resource Dir |
| DO_NOT_DELETE_KEYS |
Redis key that shouldn't be deleted while removing cached templates |
Methods
ThemeSettingsManager constructor.
Search themes directory for all frontend themes
Export theme to zip file
Upload theme zip
Upload theme zip
Install theme by name
Get current theme names
Find themes preview images
Remove theme by name
Render theme grid
Generate css for theme
Details
at line 75
__construct(ContainerInterface $container)
ThemeSettingsManager constructor.
at line 84
array
getAllFrontendThemes()
Search themes directory for all frontend themes
at line 105
bool
exportTheme(string $theme)
Export theme to zip file
at line 123
bool
uploadTheme(string $base64, string $themeName)
Upload theme zip
at line 185
bool
uploadThemeBkp(string $base64, string $themeName)
Upload theme zip
at line 245
bool
installThemeByName(string $theme)
Install theme by name
at line 334
array
getCurrentThemes()
Get current theme names
at line 348
array
getThemePreviews(array $themes)
Find themes preview images
at line 381
bool
deleteTheme(string $themeName)
Remove theme by name
at line 410
string
renderThemeGrid(string|null $currentFrontendTheme = null)
Render theme grid
at line 436
generateCssForTheme(string $themeName, Client $cache, string $projectRoot)
Generate css for theme