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
| prop | readonly string $theme | Promoted from the constructor. |
| prop | readonly string $slug | Promoted from the constructor. |
| prop | readonly string $type | Promoted from the constructor. |
| prop | readonly string $content | Promoted from the constructor. |
| prop | readonly string $title | Promoted from the constructor. |
| prop | readonly string $description | Promoted from the constructor. |
| prop | readonly string $source | Promoted from the constructor. |
| prop | readonly ?string $origin | Promoted from the constructor. |
| prop | readonly bool $hasThemeFile | Promoted from the constructor. |
| prop | readonly int $author | Promoted from the constructor. |
| prop | readonly ?string $modified | Promoted from the constructor. |
| prop | readonly ?string $date | Promoted from the constructor. |
| prop | readonly int $wpId | Promoted from the constructor. |
| prop | readonly string $status | Promoted from the constructor. |
| prop | readonly ?string $area | Promoted from the constructor. |
| prop | readonly ?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)# | |
| method | id(): string# | The reference's template id: theme//slug. |
| method | isPart(): bool# | Whether this is a template part. |
Nothing matches.