API / Minn\Theme / Hierarchy

Hierarchy final class

Minn\Theme\Hierarchy · public/minn/src/Minn/Theme/Hierarchy.php · 148 lines

The classic template hierarchy: the candidate file names each template type tries, most specific first, as the reference resolves them. The facade's get_{type}_template() functions feed these to get_query_template(), which locates the first candidate the theme (child, then parent) ships.

Public

staticfrontPage(): array#

The front page templates.

@return list<string>
statichome(): array#

The home templates.

@return list<string>
staticprivacyPolicy(): array#

The privacy policy templates.

@return list<string>
staticpage(string $custom, string $slug, int $id): array#

The page templates, custom first.

@return list<string>
staticsingle(string $type, string $slug, string $custom): array#

The single templates, custom first.

@return list<string>
staticattachment(string $mimeType): array#

The attachment templates by mime type: type-subtype, subtype, type (probe template-getters).

@return list<string>
staticterm(string $taxonomy, string $slug, int $id): array#

The term archive templates.

@return list<string>
staticauthor(string $nicename, int $id): array#

The author archive templates.

@return list<string>
staticarchive(array $postTypes): array#

The post type archive templates.

$postTypeslist<string>@return list<string>