ResettableStackedRouteMatchInterface.php 698 B

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