class ThemeManager implements BasicEntityManagerInterface

Class ThemeManager is injected as alligator.theme.manager service. ThemeManager handles the logic for managed entity.

Methods

__construct(ContainerInterface $container, ThemeRepository $repository)

ThemeManager constructor.

saveTheme(Theme $theme)

Persist new theme

bool
deleteTheme(Theme $theme)

Delete theme

Theme|null
getThemeByName(string $name)

Find theme by name

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.

Parameters

ContainerInterface $container
ThemeRepository $repository

at line 59
Theme saveTheme(Theme $theme)

Persist new theme

Parameters

Theme $theme

Return Value

Theme

Exceptions

Exception

at line 72
bool deleteTheme(Theme $theme)

Delete theme

Parameters

Theme $theme

Return Value

bool

Exceptions

NonUniqueResultException

at line 89
Theme|null getThemeByName(string $name)

Find theme by name

Parameters

string $name

Return Value

Theme|null

Exceptions

NonUniqueResultException

at line 103
ThemeOptions|null getOptionsById(int $id)

Find theme options by id

Parameters

int $id

Return Value

ThemeOptions|null

Exceptions

NonUniqueResultException

at line 116
Theme|null getThemeById(int $id)

Find theme by id

Parameters

int $id

Return Value

Theme|null

Exceptions

NonUniqueResultException

at line 125
array getAllFonts()

Find all fonts

Return Value

array