You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add something like abeforeRender callback to Statamic\View\View? Similar to the Cascade::hydrated() callback added here: statamic/cms#4359
I use the Cascade::hydrated() callback to add additional data to the context. This does mostly what I need it to do. But there are cases where a View adds additional data to the cascade in the gatherData() method, e.g. in the NotFoundHttpException.
So the final context data can be different to what's available in the Cascade::hydrated() callback. I need a way to have the last say before the context gets added to the page.
The text was updated successfully, but these errors were encountered:
Is it possible to add something like a
beforeRender
callback toStatamic\View\View
? Similar to theCascade::hydrated()
callback added here: statamic/cms#4359I use the
Cascade::hydrated()
callback to add additional data to the context. This does mostly what I need it to do. But there are cases where a View adds additional data to the cascade in thegatherData()
method, e.g. in the NotFoundHttpException.So the final context data can be different to what's available in the
Cascade::hydrated()
callback. I need a way to have the last say before the context gets added to the page.The text was updated successfully, but these errors were encountered: