Skip to content

Kirby 5.1.2

$blocks->fallback()

Creates the fallback block type if no other block can be found

$blocks->fallback(Kirby\Parsley\Element|string $element): array|null

Parameters

Name Type Default
$elementrequired Kirby\Parsley\Elementorstring no default value

Return types

arrayornull

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

Parent class

Kirby\Parsley\Schema\Blocks