VariableThemeDirectories

Extends \BaseThemeDirectories Implements \VariableThemeDirectoriesInterface

Class VariableThemeDirectories

package

Default

Methods

BaseThemeDirectories constructor.

__construct(\ThemeDirectoryRootInterface $root) 
inherited

Returns the config theme directory.

getConfig() : \ThemeDirectoryInterface

Returns the fonts directory.

getFonts() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

Returns the html theme directory.

getHtml() : \ThemeDirectoryInterface
inherited

Returns the images directory.

getImages() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

Returns the js theme directory.

getJs() : \ThemeDirectoryInterface
inherited

getPrefix

getPrefix() : string
inherited

Response

string

Returns the directory root.

getRoot() : \ThemeDirectoryRootInterface
inherited

Returns the style edit theme directory.

getStyleEdit() : \ThemeDirectory|null

Response

\ThemeDirectory|null

Returns the styles theme directory.

getStyles() : \ThemeDirectoryInterface
inherited

Returns the variants directory

getVariants() : \ThemeDirectory

Response

\ThemeDirectory

Tries to create an instance of ThemeDirectory by the given root- and sub path.

tryBuildThemeDirectory(\ThemeDirectoryRootInterface $root, string $path) : null|\ThemeDirectory
inherited

If no directory was found, null will be returned.

Arguments

$root

\ThemeDirectoryRootInterface

Path to root directory of theme.

$path

string

Sub directory path.

Response

null|\ThemeDirectory

Theme directory instance if given path exists.

Properties

config

config : \ThemeDirectory
var

Type(s)

\ThemeDirectory

variants directory

variants : \ThemeDirectory|null
var

Type(s)

\ThemeDirectory|null

styleEdit

styleEdit : \ThemeDirectory
var

Type(s)

\ThemeDirectory

Fonts directory

fonts : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

html

html : \ThemeDirectory
inherited
var

Type(s)

\ThemeDirectory

js

js : \ThemeDirectory
inherited
var

Type(s)

\ThemeDirectory

styles

styles : \ThemeDirectory
inherited
var

Type(s)

\ThemeDirectory

images

images : \ThemeDirectory
inherited
var

Type(s)

\ThemeDirectory

prefix

prefix : string
inherited
var

Type(s)

string

root

root : \ThemeDirectoryRootInterface
inherited