ThemeReader

Implements \ThemeReaderInterface

Class ThemeReader

package

Default

Methods

Returns a list of names of all available themes.

getAvailableThemes(\ThemeDirectoryRootInterface $source) : \ThemeNameCollection

Returns a theme instance by the given id and source directory.

getTheme(\ThemeId $id, \ThemeDirectoryRootInterface $source) : \ThemeInterface

Arguments

$id

\ThemeId

Theme id, the identifier is the theme name.

$source

\ThemeDirectoryRootInterface

Path to themes source directory.

Response

\ThemeInterface