Skip to content

Kirby 4.2.0

$element->className()

Returns the value of the class attribute

$element->className(): string|null

Return type

string|null

Parent class

Kirby\Parsley\Element