API / Minn\Theme / ClassicTheme

ClassicTheme final readonly class

Minn\Theme\ClassicTheme · public/minn/src/Minn/Theme/ClassicTheme.php · 31 lines

The active classic (PHP-template) theme on disk. A theme is classic when it ships no block template index; its templates are PHP files the engine dispatches through the reference's hierarchy and runs via load_template(). The theme's own functions.php loads through the runtime's symbol gate.

Constants and properties

propreadonly string $stylesheet

Promoted from the constructor.

propreadonly string $template

Promoted from the constructor.

propreadonly string $stylesheetDir

Promoted from the constructor.

propreadonly string $templateDir

Promoted from the constructor.

Public

new__construct(string $stylesheet, string $template, string $stylesheetDir, string $templateDir)#
staticactive(Minn\Content\Site $site, string $themesDir): ?self#

The active classic theme, or null under a block theme.