ThemeDirectories

Extends \VariableThemeDirectories Implements \ThemeDirectoriesInterface

Class ThemeDirectories

package

Default

Methods

BaseThemeDirectories constructor.

__construct(\ThemeDirectoryRootInterface $root) 
inherited

Named constructor of ThemeDirectories.

create(\ThemeDirectoryRootInterface $root) : \ThemeDirectoriesInterface
static

Arguments

$root

\ThemeDirectoryRootInterface

Path to root directory of theme.

Response

\ThemeDirectoriesInterface

New instance.

Returns the config theme directory.

getConfig() : \ThemeDirectoryInterface
inherited

Return the custom HTML directory

getCustomHtml() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

Return the custom scripts directory

getCustomJs() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

Return the custom styles directory

getCustomStyles() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

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

Returns the script extension directory

getJsExtensions() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

getPrefix

getPrefix() : string
inherited

Response

string

Returns the directory root.

getRoot() : \ThemeDirectoryRootInterface
inherited

Returns the style edit theme directory.

getStyleEdit() : \ThemeDirectory|null
inherited

Response

\ThemeDirectory|null

Returns the styles theme directory.

getStyles() : \ThemeDirectoryInterface
inherited

Returns the variants directory

getVariants() : \ThemeDirectory
inherited

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

root

root : \ThemeDirectoryRootInterface
inherited

Custom HTML directory

customHtml : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

Custom JS directory

customJs : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

Custom styles directory

customStyles : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

script extension directory

jsExtensions : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

config

config : \ThemeDirectory
inherited
var

Type(s)

\ThemeDirectory

variants directory

variants : \ThemeDirectory|null
inherited
var

Type(s)

\ThemeDirectory|null

styleEdit

styleEdit : \ThemeDirectory
inherited
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