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.
The overview field atm indirectly calls views_set_current_view which caches the current view. It does this through View::preExecute().
After rendering the view, I think we'll need to call views_set_current_view(null) to unset the active view.
This issue was noticed becasue an image paragraph with an image with blazy formatter was rendered for search indexing and then the style_plugin isn't set for some reason. But it could also have other consequences, since blazySettingsAlter alters some settings for blazy rendering.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3145391_post_execute_rendered_view_3.patch | 370 bytes | daften |
Comments
Comment #2
daften CreditAttribution: daften at Dropsolid commentedOr better, use \Drupal\views\ViewExecutable::postExecute()
Comment #3
daften CreditAttribution: daften at Dropsolid commentedPatch that fixes the issue. This shouldn't have any negative side effects
Comment #4
daften CreditAttribution: daften at Dropsolid commentedComment #6
Grayle CreditAttribution: Grayle at Dropsolid commented