Reference

Guide

$blocks->excerpt()

Converts the blocks to HTML and then uses the Str::excerpt method to create a non-formatted, shortened excerpt from it

$blocks->excerpt(mixed $args = null): string

Parameters

Name Type Default Description
$args mixed null

Return type

string

Source code

kirby/src/Cms/Blocks.php#L46