RouteProviderStub
extends RouteProvider
in package
A stub for the request_stack service.
@package TestHelpers\DrupalServiceStubs
Table of Contents
Methods
- preLoadRoutes() : mixed
- {@inheritdoc}
- stubAddRoute() : mixed
- Adds a route to the collection.
- stubAddRouteByPath() : mixed
- Adds a route to the collection by a path string.
- getRoutesByPath() : mixed
- {@inheritdoc}
Methods
preLoadRoutes()
{@inheritdoc}
public
preLoadRoutes(mixed $names) : mixed
Parameters
- $names : mixed
stubAddRoute()
Adds a route to the collection.
public
stubAddRoute(string $name, Route $route) : mixed
Parameters
- $name : string
-
The route name.
- $route : Route
-
The route object.
stubAddRouteByPath()
Adds a route to the collection by a path string.
public
stubAddRouteByPath(string $name, string $path) : mixed
Parameters
- $name : string
-
The route name.
- $path : string
-
The route path.
getRoutesByPath()
{@inheritdoc}
protected
getRoutesByPath(mixed $path) : mixed
Parameters
- $path : mixed