Skip to content

Kirby 5.1.1

$block->parent()

Returns the parent model

$block->parent(): Kirby\Cms\ModelWithContent

Return type

Kirby\Cms\ModelWithContent

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

Parent class

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