API / Minn\Blocks\Dynamic / LatestPosts

LatestPosts final readonly class

Minn\Blocks\Dynamic\LatestPosts · public/minn/src/Minn/Blocks/Dynamic/LatestPosts.php · 34 lines

core/latest-posts: the newest published posts as a list, optionally dated.

Constants and properties

privatereadonly Minn\Db $db

Promoted from the constructor.

privatereadonly Minn\Content\Site $site

Promoted from the constructor.

privatereadonly Minn\Front\Permalinks $permalinks

Promoted from the constructor.

Public

new__construct(Minn\Db $db, Minn\Content\Site $site, Minn\Front\Permalinks $permalinks)#
methodrender(Minn\Blocks\Block $block): string#

The block's HTML.