ThemeDirectory

Implements \ThemeDirectoryInterface

Class ThemeDirectory

package

Default

Methods

ThemeDirectory constructor.

__construct(\ThemeDirectoryRootInterface $directoryRoot) 

Arguments

$directoryRoot

\ThemeDirectoryRootInterface

Absolute path to root of theme directory.

Named constructor of ThemeDirectory.

create(\ThemeDirectoryRootInterface $directoryRoot) : \ThemeDirectory
static

Arguments

$directoryRoot

\ThemeDirectoryRootInterface

Absolute path to root of theme directory.

Response

\ThemeDirectory

New instance.

Returns a list of all directories in the current theme (non-recursively).

getChildren() : \ThemeDirectoryCollection|null

Returns a list of all files in the current theme (non-recursively).

getFiles() : array<mixed,string>

Response

array<mixed,string>

Returns the theme directories root path.

getRoot() : \ThemeDirectoryRootInterface

Properties

root

root : \ThemeDirectoryRootInterface

files

files : array<mixed,string>
var

Type(s)

array<mixed,string>

children

children : \ThemeDirectoryCollection|null
var

Type(s)

\ThemeDirectoryCollection|null