class ThemeRouteCollection (View source)

Class RouteCollection. Holds specific special route/theme combinations. These are functions that used to live in the Router class but it makes no sense for them to take up space there.

Properties

protected $themePaths

Methods

setThemeByRoute($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)

Used by the theme_paths and site_theme_paths files in config/ to hard coded certain paths to various themes.

setThemesByRoutes(array $routes)

No description

array
getThemeByRoute(string $path)

This grabs the theme for a particular path, if one exists in the themePaths array. Returns an array with the theme handle as the first entry and the wrapper file for views as the second.

Details

setThemeByRoute($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)

Used by the theme_paths and site_theme_paths files in config/ to hard coded certain paths to various themes.

Parameters

$path

string

$theme

object, if null site theme is default

$wrapper

setThemesByRoutes(array $routes)

No description

Parameters

array $routes

array getThemeByRoute(string $path)

This grabs the theme for a particular path, if one exists in the themePaths array. Returns an array with the theme handle as the first entry and the wrapper file for views as the second.

Parameters

string $path

Return Value

array