Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This snippet exists in two places (and has the necessary service injection with all the associated boilerplate):
// Rebuild routing cache.
$this->routeBuilder->rebuild();
This should not be necessary. But indeed it currently is. #2815845: Importing (deploying) REST resource config entities should automatically do the necessary route rebuilding will fix this in core, and then the code in REST UI can be simplified.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2851127-2.patch | 5.67 KB | Wim Leers |
Comments
Comment #2
Wim LeersBlocked on #2851127: REST UI module should not be rebuilding routes.
But here's a patch already for when that lands.
Comment #3
Wim Leers#2815845: Importing (deploying) REST resource config entities should automatically do the necessary route rebuilding landed, this is now unblocked!
Comment #4
rogierbom CreditAttribution: rogierbom at Synetic commentedTested against 8.3.x
No comments, works as advertised
Comment #6
juampynr CreditAttribution: juampynr at Lullabot commentedCommitted. Thanks!
Comment #7
Wim LeersSimplification! :)