Skip to content

Kirby 5.1.1

$block->excerpt()

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

$block->excerpt(mixed ...$args): string

Parameters

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

Return type

string

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

Parent class

Kirby\Cms\Block