Skip to content

Kirby 4.2.0

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

Parameters

Name Type Default
... $args mixed null

Return type

string

Parent class

Kirby\Cms\Block