Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

CurrentRouteMatch::getRouteMatch() needs to be resettable

$
0
0

Problem/Motivation

CurrentRouteMatch::getRouteMatch() is smart enough to only statically cache the route match once it believe routing has finished.
Unfortunately, a complex RouteFilter (like the one in Page Manager) may need to alter the request during filtering, and if any code calls the route match during that process, a stale request will be stored.

Proposed resolution

Add a method to reset the route match static cache.

Remaining tasks

N/A

User interface changes

N/A

API changes

BC-compatible API addition: A new CurrentRouteMatchInterface is used and is given the new resetRouteMatch() method.

Data model changes

N/A


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>