Add schema for hideable_boolean field formatter.

Schema was missing which caused config inspector errors when creating
map_popup display config for assets. We didn't catch this before because
our default display mode is not saved in config.
This commit is contained in:
paul121 2021-05-19 17:26:51 -07:00 committed by Michael Stenta
parent 1d8a0d1c21
commit abb2dc72c7
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Schema for hideable_boolean field formatter.
field.formatter.settings.hideable_boolean:
type: mapping
mapping:
format:
type: string
label: 'Output format'
format_custom_false:
type: label
label: 'Custom output for FALSE'
format_custom_true:
type: label
label: 'Custom output for TRUE'
hide_if_false:
type: boolean
label: 'Hide if false'
hide_if_true:
type: boolean
label: 'Hide if true'