Skip to content

Kirby 5.1.1

$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): string

Parameters

Name Type Default
...$args mixed no default value

Return type

string

This method modifies the existing $blocks object it is applied to and returns it again.

Parent class

Kirby\Cms\Blocks