Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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! :)