API / Minn\Blocks\Dynamic / Archives

Archives final readonly class

Minn\Blocks\Dynamic\Archives · public/minn/src/Minn/Blocks/Dynamic/Archives.php · 29 lines

core/archives: the months that have published posts, newest first, with their counts when asked (showPostCounts).

Constants and properties

privatereadonly Minn\Db $db

Promoted from the constructor.

privatereadonly Minn\Front\Permalinks $permalinks

Promoted from the constructor.

Public

new__construct(Minn\Db $db, Minn\Front\Permalinks $permalinks)#
methodrender(Minn\Blocks\Block $block, Minn\Blocks\Renderer $renderer): string#

The block's HTML.