Structure final readonly class
Minn\Blocks\Dynamic\Theme\Structure · public/minn/src/Minn/Blocks/Dynamic/Theme/Structure.php · 105 lines
template-part, pattern, site-title, site-tagline, site-logo.
Uses 13
Used by 2
Constants and properties
| private | readonly Minn\Theme\Theme $theme | Promoted from the constructor. |
| private | readonly Minn\Theme\Templates $templates | Promoted from the constructor. |
| private | readonly Minn\Content\Site $site | Promoted from the constructor. |
| private | readonly Minn\Front\Permalinks $permalinks | Promoted from the constructor. |
Public
Internals 5
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | templatePart(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | The wrapper element follows the part's area: header, footer, or a div. |
| private | announcePart(Minn\Blocks\Block $block, string $slug, string $source, string|int $where, ?string $markup): void# | Tells plugins where a template part came from, as the reference does as it renders one: render_block_core_template_part_post (with the saved part), _file (with the theme file's path) or _none. |
| private | pattern(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | |
| private | siteTitle(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string# | |
| private | siteTagline(Minn\Blocks\Block $block): string# |
Nothing matches.