Skip to content

Kirby 3.5.7.1

$field->or()

Provides a fallback if the field value is empty

$field->or(mixed $fallback = null): Kirby\Cms\Field

Parameters

Name Type Default
$fallback mixed null

Return type

Kirby\Cms\Field

This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Field