- Issue created by @murz
The Drupal Schema provides a limited list of data item types, that are supported. But in the form pretty often we need to customize the element to handle a specific data type.
For example, we have just a "string" data type, but in the form - want to render it as a password field.
Or an integer field, but actually it should be the entity reference and store the target entity id.
Etc.
Seems a good solution can be allowing to declare explicitly what plugin we want to use to represent the data item in the form, something like this:
schema_form_test.my_api_config:
type: config_object
label: API Configuration
mapping:
password:
type: string
label: Password
third_party_settings: password
schema_form:
plugin: password
Active
1.0
Code