ResettableStackedRouteMatchInterface::resetRouteMatch

public 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.

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\Routing

Code

public function resetRouteMatch();
doc_Drupal
2016-10-29 09:37:49
Comments
Leave a Comment

Please login to continue.