RouterInterface
interface RouterInterface (View source)
Methods
Get the context that the router is running in.
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
RequestContext
getContext()
Get the context that the router is running in.
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