2

We have a custom table that creates a mixed listing of custom entity and core entity which is needed for the project.

Could someone provide a code example for programmatically creating a view in drupal 8 with mixed entities with a custom query?

I have reviewed Drupal 7 examples out there and they don't seem sufficient.

The goal is to use views powerful field formatting and reordering capability, rather than reinventing that wheel for our custom table display.

  • 1
    Did you ever find out how to create a view programmatically? I need to do the same thing. I found a couple of examples but neither work when I try them. – chavab_1 Nov 10 '16 at 1:08
  • Sorry no, we are stuck as well. – amit Dec 5 '16 at 18:35
  • Wondering if anyone has new insight on this problem – amit Feb 14 '17 at 23:29
  • did you find any other solution for your issue? – Asy Feb 18 '17 at 18:02
  • Nope, we still don't have a solution that will work with views – amit Apr 8 '17 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.