Skip to content

Kirby 5.1.3

$parsley->fallback()

Creates a fallback block type for the given element. The element can either be a element object or a simple HTML/plain text string

$parsley->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 $parsley object it is applied to and returns it again.

Parent class

Kirby\Parsley\Parsley