protected function init($theme_name = NULL
) { if ($this->initialized
) { return;
} // Unless instantiated for a specific theme, use globals.
if (!
isset($theme_name)) { $this->theme =
$this->themeManager->
getActiveTheme();
} // Instead of the active theme, a specific theme was requested.
else { $this->theme =
$this->themeInitialization->
getActiveThemeByName($theme_name);
$this->themeInitialization->
loadActiveTheme($this->theme
);
} } /**
* Returns the complete theme registry from cache or rebuilds it.
*
* @return array
* The complete theme registry data array.
*
* @see Registry::$registry
*/