function ResettableStackedRouteMatchInterface::resetRouteMatch
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/ResettableStackedRouteMatchInterface.php \Drupal\Core\Routing\ResettableStackedRouteMatchInterface::resetRouteMatch()
- 10 core/lib/Drupal/Core/Routing/ResettableStackedRouteMatchInterface.php \Drupal\Core\Routing\ResettableStackedRouteMatchInterface::resetRouteMatch()
- 11.x core/lib/Drupal/Core/Routing/ResettableStackedRouteMatchInterface.php \Drupal\Core\Routing\ResettableStackedRouteMatchInterface::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.
1 method overrides ResettableStackedRouteMatchInterface::resetRouteMatch()
- CurrentRouteMatch::resetRouteMatch in core/
lib/ Drupal/ Core/ Routing/ CurrentRouteMatch.php - Resets the route match static cache.
File
-
core/
lib/ Drupal/ Core/ Routing/ ResettableStackedRouteMatchInterface.php, line 21
Class
- ResettableStackedRouteMatchInterface
- Defines an interface for a resettable stack of route matches.
Namespace
Drupal\Core\RoutingCode
public function resetRouteMatch();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.