PHP Interface Karlomikus\Theme\Contracts\ThemeInterface

Afficher le fichier Open project: karlomikus/theme

Méthodes publiques

Méthode Description
all ( ) : array | ThemeInfo[] Get all found themes
get ( $theme = null ) : null | ThemeInfo Returns theme information.
has ( $theme ) : boolean Check if theme exists
set ( string $theme ) Set current active theme
setDefaultThemePath ( $path ) Set base themes folder path

Method Details

all() public méthode

Get all found themes
public all ( ) : array | ThemeInfo[]
Résultat array | ThemeInfo[]

get() public méthode

Returns theme information.
public get ( $theme = null ) : null | ThemeInfo
Résultat null | ThemeInfo

has() public méthode

Check if theme exists
public has ( $theme ) : boolean
$theme
Résultat boolean

set() public méthode

Set current active theme
public set ( string $theme )
$theme string Theme namespace

setDefaultThemePath() public méthode

Set base themes folder path
public setDefaultThemePath ( $path )
$path