ThemeOptionsRepository
class ThemeOptionsRepository extends EntityRepository
Class ThemeOptionsRepository is injected as alligator.theme.options.repository service. ThemeOptionsRepository is used for crud operation for managed entity.
Use this class to work with database.
Constants
| ALIAS |
Alias for theme options |
| JOIN_WITH_THEME |
Alias for theme |
Methods
ThemeOptions|null
getOptionsById(int $id)
Find theme options by id
ThemeOptions|null
getCurrentPresetForTheme(int $id)
Find theme options for specific theme
mixed
saveCurrentPreset(ThemeOptions $preset, ThemeOptions $currentPreset)
Persist new theme option and set current theme options
deleteThemePreset(int $id)
Delete theme options
Details
at line 47
ThemeOptions|null
getOptionsById(int $id)
Find theme options by id
at line 63
ThemeOptions|null
getCurrentPresetForTheme(int $id)
Find theme options for specific theme
at line 86
mixed
saveCurrentPreset(ThemeOptions $preset, ThemeOptions $currentPreset)
Persist new theme option and set current theme options
at line 110
deleteThemePreset(int $id)
Delete theme options