Skip to content

Kirby 5.1.1

$block->isEmpty()

Checks if the block is empty

$block->isEmpty(): bool

Return type

bool

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

Parent class

Kirby\Cms\Block