LatestComments final readonly class
Minn\Blocks\Dynamic\LatestComments · public/minn/src/Minn/Blocks/Dynamic/LatestComments.php · 71 lines
core/latest-comments: the newest approved comments with avatar, meta, and a 20-word excerpt.
Uses 12
Used by 1
Constants and properties
| private | readonly Minn\Db $db | Promoted from the constructor. |
| private | readonly Minn\Content\Site $site | Promoted from the constructor. |
| private | readonly Minn\Content\Posts $posts | Promoted from the constructor. |
| private | readonly Minn\Front\Permalinks $permalinks | Promoted from the constructor. |
Public
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | excerpt(string $content): string# | The first twenty words, with an ellipsis when there were more. |
Nothing matches.