ThemeManager
class ThemeManager implements BasicEntityManagerInterface
Class ThemeManager is injected as alligator.theme.manager service. ThemeManager handles the logic for managed entity.
Methods
bool
Theme|null
getThemeByName(string $name)
Find theme by name
ThemeOptions|null
getOptionsById(int $id)
Find theme options by id
Theme|null
getThemeById(int $id)
Find theme by id
array
getAllFonts()
Find all fonts
Details
at line 45
__construct(ContainerInterface $container, ThemeRepository $repository)
ThemeManager constructor.
at line 72
bool
deleteTheme(Theme $theme)
Delete theme
at line 89
Theme|null
getThemeByName(string $name)
Find theme by name
at line 103
ThemeOptions|null
getOptionsById(int $id)
Find theme options by id
at line 116
Theme|null
getThemeById(int $id)
Find theme by id
at line 125
array
getAllFonts()
Find all fonts