0

I am displaying a Drupal 8 view. I see that all of the fields that are displayed in the view are not in the query.

How does this work?

1 Answer 1

3

For query tracing you can use devel module. Devel module include the Web Profiler module which shows many options. Even you can see the all queries executed for page.

Following are the sample details of web profiler.

enter image description here

UPDATE: So how you can see your view query in web profiler? Well, follow this steps.

  1. For tracing purpose disable view cache. "Select 'No Cache' from advance section".
  2. Then Clear all drupal cache.
  3. Open views output page.
  4. Click on database link from web profiler.
  5. Now search in page(Ctr+F) your field name. E.g: Here I added one field in my view, that is field_image. So I search that and I get view query..
  6. Once you found out your query, you will see there is no parameter in query, Well to see which paraters query is taking click on "Info" tab of query. And you will see all parameters of placeholder. enter image description here
2
  • hi how exactly can i use this webprofiler in connection with the view to see the query ?
    – Diana
    Jun 22, 2017 at 15:53
  • Please check updated answer, I added how to check view query in web profiler.
    – vijay
    Jun 23, 2017 at 3:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.