API / Minn\Runtime / TemplateFiles

TemplateFiles final class

Minn\Runtime\TemplateFiles · public/minn/src/Minn/Runtime/TemplateFiles.php · 44 lines

The theme templates WordPress's template functions name: the index and embed templates found through the hierarchy, the slugs a block template stands for, and the template types and part areas core knows.

Public

staticindex(): mixed#

The theme's index template (get_index_template).

staticembed(): mixed#

The template an embed is shown with (get_embed_template): embed-{type}-{format}.php, embed-{type}.php, then embed.php.

statichierarchy(mixed $slug, mixed $isCustom = false, mixed $templatePrefix = ''): array#

The template slugs a slug stands for, most specific first (get_template_hierarchy).

@return list<string>
staticdefaultTypes(): mixed#

The template types core knows (get_default_block_template_types), as default_template_types leaves them.

staticpartAreas(): mixed#

The template part areas core knows (get_allowed_block_template_part_areas), as default_wp_template_part_areas leaves them.