Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Routing / ResettableStackedRouteMatchInterface.php
1 <?php
2
3 namespace Drupal\Core\Routing;
4
5 /**
6  * Defines an interface for a resettable stack of route matches.
7  *
8  * @todo Move this method to \Drupal\Core\Routing\StackedRouteMatchInterface in
9  *   https://www.drupal.org/node/2659952.
10  */
11 interface ResettableStackedRouteMatchInterface extends StackedRouteMatchInterface {
12
13   /**
14    * Resets the route match static cache.
15    *
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.
20    */
21   public function resetRouteMatch();
22
23 }