Router
class Router implements RouterInterface (View source)
Properties
protected UrlGeneratorInterface|null | $generator | ||
protected RequestContext|null | $context | ||
protected RouteCollection | $collection | ||
protected | $request | ||
protected | $themePaths | ||
$routes |
Methods
No description
No description
No description
No description
No description
No description
No description
Register a symfony route with as little as a path and a callback.
No description
Used by the theme_paths and site_theme_paths files in config/ to hard coded certain paths to various themes.
No description
This grabs the theme for a particular path, if one exists in the themePaths array.
No description
Details
__construct()
No description
RequestContext
getContext()
No description
setContext(RequestContext $context)
No description
UrlGeneratorInterface
getGenerator()
No description
setGenerator(UrlGeneratorInterface $generator)
No description
getList()
No description
setRequest(Request $req)
No description
Route
register(string $path, Closure|string $callback, string|null $handle = null, array $requirements = array(), array $options = array(), string $host = '', array|string $schemes = array(), array|string $methods = array(), string $condition = null)
Register a symfony route with as little as a path and a callback.
registerMultiple(array $routes)
No description
execute(Route $route, $parameters)
No description
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
string|bool
getThemeByRoute(string $path)
This grabs the theme for a particular path, if one exists in the themePaths array.
route($data)
No description