ThemeInitializationInterface
interface ThemeInitializationInterface (View source)
Defines an interface which contain theme initialization logic.
Methods
initTheme(string $theme_name)
Initializes a given theme.
getActiveThemeByName(string $theme_name)
Builds an active theme object.
getActiveTheme(Extension $theme, array $base_themes = [])
Builds up the active theme object from extensions.
Details
ActiveTheme
initTheme(string $theme_name)
Initializes a given theme.
This loads the active theme, for example include its engine file.
ActiveTheme
getActiveThemeByName(string $theme_name)
Builds an active theme object.
loadActiveTheme(ActiveTheme $active_theme)
Loads a theme, so it is ready to be used.
Loading a theme includes loading and initializing the engine, each base theme and its engines.
ActiveTheme
getActiveTheme(Extension $theme, array $base_themes = [])
Builds up the active theme object from extensions.