- π¦πΊAustralia fenstrat Australia
Just a note for anyone who might be using this with an entity reference selection view, you'll probably hit a fatal
Uncaught PHP Exception Error: "Call to a member function bundle() on null
due to the way WBA no implements hook_views_post_render():+++ b/workbench_access.module @@ -246,3 +248,47 @@ function workbench_access_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) { + $output['#cache']['tags'][] = 'workbench_access_view';
I can't see any issues here, it seems legit to add cache tags onto the output array. Instead it's a core issue, for a fix see π EntityReference ViewsSelection::stripAdminAndAnchorTagsFromResults() should call Element::children($results) Fixed