Accessing the View Instance | Swapping Antlers Layouts and Passing Data to Layouts
We have determined we can probably change the template's layout by calling the layout method on the Statamic\View\View instance. But how do we gain access to this View instance in order to actually do this? Through more source diving, we can see...