Layout
Layout renderer class. This class is responsible for finding and returning the appropriate layout file for a given page based on its type, section, and other variables. It looks for layout files in various directories such as the site's layouts directory, the theme's layouts directory, and the internal resources/layouts directory.
Table of Contents
Constants
- EXT = 'twig'
- Twig template extension.
Methods
- finder() : array<string|int, mixed>
- Layout files finder.
- lookup() : array<string|int, mixed>
- Templates lookup rules.
Constants
EXT
Twig template extension.
public
string
EXT
= 'twig'
Methods
finder()
Layout files finder.
public
static finder(Page $page, string $format, Config $config) : array<string|int, mixed>
Parameters
Tags
Return values
array<string|int, mixed>lookup()
Templates lookup rules.
protected
static lookup(Page $page, string $format, Config $config) : array<string|int, mixed>