Skip to content

Kirby 4.5.0

$block->is()

Compares the item to another one

$block->is(Kirby\Cms\Item $item): bool

Parameters

Name Type Default
$item * Kirby\Cms\Item

Return type

bool

Parent class

Kirby\Cms\Block inherited from Kirby\Cms\Item