ThemeOptionsManager
class ThemeOptionsManager implements BasicEntityManagerInterface
Class ThemeOptionsManager is injected as alligator.theme.options.manager service. ThemeOptionsManager handles the logic for managed entity.
Methods
ThemeManager constructor.
Find theme options by id
Find theme options for specific theme
Check for all preconditions, create references to all foreign entities, persist new theme options and update current if needed
Execute assets command
Persist new theme option and set current theme options
Find theme by id
Delete theme options
Details
at line 61
__construct(ContainerInterface $container, ThemeOptionsRepository $repository)
ThemeManager constructor.
at line 75
ThemeOptions|null
getOptionsById(int $id)
Find theme options by id
at line 88
ThemeOptions|null
getCurrentPresetForTheme(int $id)
Find theme options for specific theme
at line 100
saveThemePreset(ThemeOptions $preset)
Check for all preconditions, create references to all foreign entities, persist new theme options and update current if needed
at line 156
execCommand()
Execute assets command
at line 179
string
generateStyleForPreset(ThemeOptions $preset)
Render style for specific theme
at line 196
mixed
saveCurrentPreset(ThemeOptions $preset, ThemeOptions $currentPreset = null)
Persist new theme option and set current theme options
at line 207
Theme|null
getThemeByPk(int $id)
Find theme by id
at line 220
bool
deleteThemePreset(int $id)
Delete theme options