Skip to content
Snippets Groups Projects

Draft: Default field enhancer for each field type

Files
12
@@ -79,3 +79,43 @@ jsonapi_extras.settings:
type: boolean
label: 'Validate configuration integrity'
description: "Enable a configuration validation step for the fields in your resources. This will ensure that new (and updated) fields also contain configuration for the corresponding resources."
jsonapi_extras.jsonapi_field_type_config:
type: config_entity
label: 'JSON:API Field Type Config'
mapping:
disabled:
type: boolean
label: 'Disabled'
description: 'Globally disable field type enhancers.'
resourceFields:
type: sequence
label: 'Field Types'
sequence:
type: jsonapi_extras.resource_field_type
jsonapi_extras.resource_field_type:
type: mapping
mapping:
disabled:
type: boolean
label: 'Disabled'
description: 'Is the field type disabled?'
fieldName:
type: string
label: 'Entity field name'
includedFieldTypes:
type: sequence
label: 'Included field types'
sequence:
type: string
enhancer:
type: mapping
label: 'Enhancer plugin'
description: 'A plugin that carries additional (de)normalization tasks.'
mapping:
id:
type: string
description: 'The enhancer plugin ID'
settings:
type: jsonapi_extras.enhancer_plugin.[%parent.id]
Loading