Problem/Motivation
When a Views block display is rendered by Display Builder (via the display_builder display extender provided by the display_builder_views submodule), the core Views block setting "Hide block if the view output is empty" (block_hide_empty) stops working: the block is still rendered even when the view has no results.
Steps to reproduce
1. Install display_builder + display_builder_views.
2. Create a view with a block display and enable the "Display Builder" display extender on that display (select a profile).
3. In the block display settings, check "Hide block if the view output is empty".
4. Add content to the Empty text area of the display (e.g. "No results found"). Header/footer content has the same effect.
5. Make the view return no results (e.g. add a filter that matches nothing).
6. Place the block and observe the page.
Issue fork display_builder-3616238
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
prince.wangComment #4
mogtofu33 commentedComment #5
mogtofu33 commentedWould be great to have a test but it's probably a broader need on the whole hook which has none and a bunch of todos, will merge as it is for now, thanks!
Comment #6
mogtofu33 commented