I am programmatically generating views based on an entity with varying fields and saving them with $view->save()
. Just to be clear, I have to do this because my entities have x-amount of fields, and the view needs to display all the fields.
I am thinking that creating all these views in the database might not be a good long term plan, especially when I go into the Views UI, and see a billion views there.
Can I create a one-off view (e.g. typical Views export code producing a block), and print its block to a page without saving it?