$fieldMethods->or()
Provides a fallback if the field value is empty
$fieldMethods->or(mixed $fallback = null): FieldMethods
Parameters
| Name | Type | Default |
|---|---|---|
| $fallback | mixed |
null
|
Return types
Kirby\Content\FieldMethods
This method does not modify the existing $fieldmethods object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Content\FieldMethods