MainTheme

Implements \MainThemeInterface

Class MainTheme

package

Default

Methods

MainTheme constructor.

__construct(\ThemeId $id, \MainThemeDirectoriesInterface $directories) 

Arguments

$id

\ThemeId

Theme identifier (the themes name).

$directories

\MainThemeDirectoriesInterface

Theme directories.

Named constructor of MainTheme.

create(\ThemeId $id, \MainThemeDirectoriesInterface $directories) : \MainTheme
static

Arguments

$id

\ThemeId

Theme identifier (the themes name).

$directories

\MainThemeDirectoriesInterface

Theme directories.

Response

\MainTheme

New instance.

Returns the config theme directory.

getConfig() : \ThemeDirectoryInterface

Returns the fonts theme directory.

getFonts() : \ThemeDirectoryInterface

Returns the html theme directory.

getHtml() : \ThemeDirectoryInterface

Returns the root theme id.

getId() : \ThemeId

Response

\ThemeId

Returns the images theme directory.

getImages() : \ThemeDirectoryInterface

Returns the js theme directory.

getJs() : \ThemeDirectoryInterface

getPrefix

getPrefix() : string

Response

string

Returns the directory root.

getRoot() : \ThemeDirectoryRootInterface

Returns the style edit theme directory.

getStyleEdit() : \ThemeDirectoryInterface

Returns the styles theme directory.

getStyles() : \ThemeDirectoryInterface

Returns the variants directory

getVariants() : \ThemeDirectory|null

Response

\ThemeDirectory|null

Properties

id

id : \ThemeId
var

Type(s)

\ThemeId

directories

directories : \MainThemeDirectoriesInterface