Skip to content

Kirby 5.2.0

$parsley->isBlock()

Checks if the given DOMNode is a block element

$parsley->isBlock(DOMNode $element): bool

Parameters

Name Type Default
$elementrequired DOMNode no default value

Return type

bool

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

Parent class

Kirby\Parsley\Parsley