3 namespace Drupal\Core\Routing;
6 * Defines an interface for a resettable stack of route matches.
8 * @todo Move this method to \Drupal\Core\Routing\StackedRouteMatchInterface in
9 * https://www.drupal.org/node/2659952.
11 interface ResettableStackedRouteMatchInterface extends StackedRouteMatchInterface {
14 * Resets the route match static cache.
16 * The route match should only be statically cached once routing is finished.
17 * Any code that uses a route match during routing may be incorrectly assumed
18 * to be acting after routing has completed. This method gives that code the
19 * ability to fix the static cache.
21 public function resetRouteMatch();