How to check if a view is empty?

Created on 15 December 2014, about 10 years ago
Updated 26 November 2024, 3 months ago

PROBLEM
I have to check whether a view is empty. However, #markup contains empty divs and spans so the function views_get_view_result returns a non-empty object.

CONTEXT
Having a regular view with a field-collection view inside.
All fields of both views are set to hide if empty.

How can I do it?
Thanks!

💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇮🇱Israel Amir Simantov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024