API / Minn\Theme / TemplateRecord

TemplateRecord final readonly class

Minn\Theme\TemplateRecord · public/minn/src/Minn/Theme/TemplateRecord.php · 34 lines

One block template or template part, whatever it came from: a theme file, a row the site editor saved, or a template a plugin registered. The id every caller uses is "<theme>//<slug>" in all three cases.

Constants and properties

propreadonly string $theme

Promoted from the constructor.

propreadonly string $slug

Promoted from the constructor.

propreadonly string $type

Promoted from the constructor.

propreadonly string $content

Promoted from the constructor.

propreadonly string $title

Promoted from the constructor.

propreadonly string $description

Promoted from the constructor.

propreadonly string $source

Promoted from the constructor.

propreadonly ?string $origin

Promoted from the constructor.

propreadonly bool $hasThemeFile

Promoted from the constructor.

propreadonly int $author

Promoted from the constructor.

propreadonly ?string $modified

Promoted from the constructor.

propreadonly ?string $date

Promoted from the constructor.

propreadonly int $wpId

Promoted from the constructor.

propreadonly string $status

Promoted from the constructor.

propreadonly ?string $area

Promoted from the constructor.

propreadonly ?string $plugin

Promoted from the constructor.

Public

new__construct(string $theme, string $slug, string $type, string $content, string $title, string $description, string $source, ?string $origin, bool $hasThemeFile, int $author, ?string $modified, ?string $date, int $wpId, string $status = 'publish', ?string $area = NULL, ?string $plugin = NULL)#
methodid(): string#

The reference's template id: theme//slug.

methodisPart(): bool#

Whether this is a template part.