- First commit to issue fork.
- πΊπΈUnited States jnettik Denver, CO
Opened a MR for this that solves the issue at the block plugin level. It uses a Drupal helper method to check if things are empty. The issue with views specifically is that it returns cache data in the render array and so EEF by default will show that as having content.
-
droath β
committed 94a2ab3d on 2.0.x
Issue #3334147: Empty content view
-
droath β
committed 94a2ab3d on 2.0.x
- Status changed to Fixed
9 months ago 5:44pm 28 March 2024 - πΊπΈUnited States droath
Thank you, it has been patched in the dev release and will be pushed to the RC shortly
- πΈπ°Slovakia coaston
I dont see patch #4 in commit 94a2ab3d.
However patch #4 resolved the issue.
- Status changed to Fixed
8 months ago 5:02pm 9 April 2024 Follow up from issue 3283364 as well as comment #4 from this issue's reporter.
The merged commit (94a2ab3d) contains a fix for ExtraFieldBlockPlugin, but it appears ExtraFieldViewsPlugin also has an issue.
The problem is that a ViewExecutable will build a render array regardless of whether it has anything to display, because the view is not executed until render time, and hence it is not sufficient to check the render array.
You have to actually execute the view with arguments, then check$view->getDisplay()->outputIsEmpty()
- πΈπ°Slovakia coaston
I have reopen issue here 3469612 π Hide block/view if No results behavior Active as this one cannot be reopen.