ThemeService

Implements \ThemeServiceInterface

Class ThemeService

package

Default

Methods

ThemeService constructor.

__construct(\ThemeRepositoryInterface $repository, \CacheControl $cacheControl, \ThemeContentManagerEntryStorage $entryStorage, \CI_DB_query_builder $queryBuilder, \ContentWriteService $contentWriteService) 

Arguments

$cacheControl

\CacheControl

$entryStorage

\ThemeContentManagerEntryStorage

$queryBuilder

\CI_DB_query_builder

$contentWriteService

\ContentWriteService

Activates a theme for the shop.

activateTheme(string $themeName) 
Throws
\Exception

Arguments

$themeName

string

build a temporary theme.

buildTemporaryTheme(\ThemeId $themeId, \ThemeSettingsInterface $settings) : void

Arguments

$themeId

\ThemeId

Get Available themes.

getAvailableThemes(\ThemeDirectoryRootInterface $source) : \ThemeNameCollection

Stores the theme contents.

storeThemeContent(\ThemeId $themeId, \ThemeContents $themeContents) 
Throws
\Exception

Arguments

$themeId

\ThemeId

$themeContents

\ThemeContents

Properties