BaseThemeDirectories

Implements \BaseThemeDirectoriesInterface

Class BaseThemeDirectories

package

Default

Methods

BaseThemeDirectories constructor.

__construct(\ThemeDirectoryRootInterface $root) 

Returns the fonts directory.

getFonts() : \ThemeDirectory|null

Response

\ThemeDirectory|null

Returns the html theme directory.

getHtml() : \ThemeDirectoryInterface

Returns the images directory.

getImages() : \ThemeDirectory|null

Response

\ThemeDirectory|null

Returns the js theme directory.

getJs() : \ThemeDirectoryInterface

getPrefix

getPrefix() : string

Response

string

Returns the directory root.

getRoot() : \ThemeDirectoryRootInterface

Returns the styles theme directory.

getStyles() : \ThemeDirectoryInterface

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

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

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

Fonts directory

fonts : \ThemeDirectory|null
var

Type(s)

\ThemeDirectory|null

html

html : \ThemeDirectory
var

Type(s)

\ThemeDirectory

js

js : \ThemeDirectory
var

Type(s)

\ThemeDirectory

styles

styles : \ThemeDirectory
var

Type(s)

\ThemeDirectory

images

images : \ThemeDirectory
var

Type(s)

\ThemeDirectory

prefix

prefix : string
var

Type(s)

string

root

root : \ThemeDirectoryRootInterface