CurrentRouteMatch::resetRouteMatch

public CurrentRouteMatch::resetRouteMatch() Resets the route match static cache. The route match should only be statically cached once routing is finished. Any code that uses a route match during routing may be incorrectly assumed to be acting after routing has completed. This method gives that code the ability to fix the static cache. Overrides ResettableStackedRouteMatchInterface::resetRouteMatch File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 119 Class CurrentRouteMatch De

CurrentRouteMatch::getRouteObject

public CurrentRouteMatch::getRouteObject() Returns the route object. Return value \Symfony\Component\Routing\Route|null The route object. NULL if no route is matched. Overrides RouteMatchInterface::getRouteObject File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 48 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code public function getRouteObject() { return $this->getCurrentRouteMatch()->getRouteObject(); }

CurrentRouteMatch::getRouteName

public CurrentRouteMatch::getRouteName() Returns the route name. Return value string|null The route name. NULL if no route is matched. Overrides RouteMatchInterface::getRouteName File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 41 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code public function getRouteName() { return $this->getCurrentRouteMatch()->getRouteName(); }

CurrentRouteMatch::getRouteMatchFromRequest

public CurrentRouteMatch::getRouteMatchFromRequest(Request $request) Returns a route match from a given request, if possible. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. Return value \Drupal\Core\Routing\RouteMatchInterface|null THe matching route match, or NULL if there is no matching one. Overrides StackedRouteMatchInterface::getRouteMatchFromRequest File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 140 Class CurrentRouteMatch Default object

CurrentRouteMatch::getRouteMatch

protected CurrentRouteMatch::getRouteMatch(Request $request) Returns the route match for a passed in request. Parameters \Symfony\Component\HttpFoundation\Request $request: A request object. Return value \Drupal\Core\Routing\RouteMatchInterface A route match object created from the request. File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 99 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code protected function getRo

CurrentRouteMatch::getRawParameters

public CurrentRouteMatch::getRawParameters() Returns the bag of all raw route parameters. Return value \Symfony\Component\HttpFoundation\ParameterBag The parameter bag. Overrides RouteMatchInterface::getRawParameters See also \Drupal\Core\Routing\RouteMatchInterface::getParameters() File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 76 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code public function getRawParameters

CurrentRouteMatch::getRawParameter

public CurrentRouteMatch::getRawParameter($parameter_name) Returns the raw value of a named route parameter. Parameters string $parameter_name: The parameter name. Return value string|null The raw (non-upcast) parameter value. NULL if the route doesn't define the parameter or if the raw parameter value can't be determined from the request. Overrides RouteMatchInterface::getRawParameter See also \Drupal\Core\Routing\RouteMatchInterface::getParameter() File core/lib/Drupal/Core/Routing/Current

CurrentRouteMatch::getParentRouteMatch

public CurrentRouteMatch::getParentRouteMatch() Returns the parent route match of the current. Return value \Drupal\Core\Routing\RouteMatchInterface|null The parent route match or NULL, if it the master route match. Overrides StackedRouteMatchInterface::getParentRouteMatch File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 133 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code public function getParentRouteMatch() {

CurrentRouteMatch::getParameters

public CurrentRouteMatch::getParameters() Returns the bag of all processed route parameters. Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object. Return value \Symfony\Component\HttpFoundation\ParameterBag The parameter bag. Ov

CurrentRouteMatch::getParameter

public CurrentRouteMatch::getParameter($parameter_name) Returns the processed value of a named route parameter. Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object. Parameters string $parameter_name: The parameter name. Return