2013-02-27 22:37:13 +00:00
|
|
|
# Schema for the configuration files of the text module.
|
|
|
|
|
|
|
|
text.settings:
|
2015-03-31 09:40:13 +00:00
|
|
|
type: config_object
|
2013-02-27 22:37:13 +00:00
|
|
|
label: 'Text settings'
|
2024-03-28 09:45:18 +00:00
|
|
|
constraints:
|
|
|
|
FullyValidatable: ~
|
2013-02-27 22:37:13 +00:00
|
|
|
mapping:
|
|
|
|
default_summary_length:
|
|
|
|
type: integer
|
|
|
|
label: 'Default summary length'
|
2024-03-28 09:45:18 +00:00
|
|
|
constraints:
|
|
|
|
NotNull: [ ]
|
|
|
|
Range:
|
|
|
|
min: 1
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.storage_settings.text:
|
2013-04-23 07:54:10 +00:00
|
|
|
type: mapping
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Text (formatted) settings'
|
2013-04-23 07:54:10 +00:00
|
|
|
mapping:
|
|
|
|
max_length:
|
|
|
|
type: integer
|
|
|
|
label: 'Maximum length'
|
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.field_settings.text:
|
2013-04-23 07:54:10 +00:00
|
|
|
type: mapping
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Text (formatted) settings'
|
Issue #784672 by smustgrave, floretan, lokapujya, joegraduate, jcnventura, AndyF, joelpittet, darvanen, c960657, eiriksm, viappidu, jungle, ravi.shankar, DanielVeza, Meenakshi_j, gordon, raman.b, mohit_aghera, vsujeetkumar, aleevas, vakulrai, bruvers, larowlan, vpeltot, wjaspers, Sonal.Sangale, jan.stoeckler, jofitz, vdsh, minorOffense, LewisNyman, mgifford, Berdir, tstoeckler, Luke.Leber, Hanno, alexpott, andypost, yannickoo, hchonov, quietone, David_Rothstein, fgm, mr.baileys, MaxMendez, mpp: Allow text field to enforce a specific text format
2022-11-29 11:37:35 +00:00
|
|
|
mapping:
|
|
|
|
allowed_formats:
|
|
|
|
type: sequence
|
|
|
|
label: 'Allowed text formats'
|
|
|
|
sequence:
|
|
|
|
type: string
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.value.text:
|
|
|
|
type: mapping
|
2013-04-23 07:54:10 +00:00
|
|
|
label: 'Default value'
|
2014-11-24 22:17:32 +00:00
|
|
|
mapping:
|
|
|
|
value:
|
|
|
|
type: label
|
|
|
|
label: 'Value'
|
|
|
|
format:
|
|
|
|
type: string
|
|
|
|
label: 'Text format'
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.storage_settings.text_long:
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Text (formatted, long) settings'
|
Issue #784672 by smustgrave, floretan, lokapujya, joegraduate, jcnventura, AndyF, joelpittet, darvanen, c960657, eiriksm, viappidu, jungle, ravi.shankar, DanielVeza, Meenakshi_j, gordon, raman.b, mohit_aghera, vsujeetkumar, aleevas, vakulrai, bruvers, larowlan, vpeltot, wjaspers, Sonal.Sangale, jan.stoeckler, jofitz, vdsh, minorOffense, LewisNyman, mgifford, Berdir, tstoeckler, Luke.Leber, Hanno, alexpott, andypost, yannickoo, hchonov, quietone, David_Rothstein, fgm, mr.baileys, MaxMendez, mpp: Allow text field to enforce a specific text format
2022-11-29 11:37:35 +00:00
|
|
|
type: field.field_settings.text
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.field_settings.text_long:
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Text (formatted, long) settings'
|
2013-04-23 07:54:10 +00:00
|
|
|
type: mapping
|
Issue #784672 by smustgrave, floretan, lokapujya, joegraduate, jcnventura, AndyF, joelpittet, darvanen, c960657, eiriksm, viappidu, jungle, ravi.shankar, DanielVeza, Meenakshi_j, gordon, raman.b, mohit_aghera, vsujeetkumar, aleevas, vakulrai, bruvers, larowlan, vpeltot, wjaspers, Sonal.Sangale, jan.stoeckler, jofitz, vdsh, minorOffense, LewisNyman, mgifford, Berdir, tstoeckler, Luke.Leber, Hanno, alexpott, andypost, yannickoo, hchonov, quietone, David_Rothstein, fgm, mr.baileys, MaxMendez, mpp: Allow text field to enforce a specific text format
2022-11-29 11:37:35 +00:00
|
|
|
mapping:
|
|
|
|
allowed_formats:
|
|
|
|
type: sequence
|
|
|
|
label: 'Allowed text formats'
|
|
|
|
sequence:
|
|
|
|
type: string
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.value.text_long:
|
|
|
|
type: mapping
|
2013-04-23 07:54:10 +00:00
|
|
|
label: 'Default value'
|
2014-11-24 22:17:32 +00:00
|
|
|
mapping:
|
|
|
|
value:
|
|
|
|
type: text
|
|
|
|
label: 'Value'
|
|
|
|
format:
|
|
|
|
type: string
|
|
|
|
label: 'Text format'
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2024-03-13 15:38:01 +00:00
|
|
|
# This field type has no field storage settings, so no specific config schema type.
|
|
|
|
# @see `type: field.storage_settings.*`
|
2014-11-24 22:17:32 +00:00
|
|
|
field.field_settings.text_with_summary:
|
2013-04-23 07:54:10 +00:00
|
|
|
type: mapping
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Text (formatted, long, with summary) settings'
|
2013-04-23 07:54:10 +00:00
|
|
|
mapping:
|
|
|
|
display_summary:
|
|
|
|
type: boolean
|
|
|
|
label: 'Summary input'
|
Issue #1704864 by nick_schuch, Stalski, larowlan, kostyashupenko, andymartha, xjm, webchick, zuuperman, tim.plunkett, catch, alexverb, irawan, ling-drupal: Add a "Required" and "Show by default" option for "Text area with a summary" field/widget
2019-06-28 02:01:21 +00:00
|
|
|
required_summary:
|
|
|
|
type: boolean
|
|
|
|
label: 'Require summary'
|
Issue #784672 by smustgrave, floretan, lokapujya, joegraduate, jcnventura, AndyF, joelpittet, darvanen, c960657, eiriksm, viappidu, jungle, ravi.shankar, DanielVeza, Meenakshi_j, gordon, raman.b, mohit_aghera, vsujeetkumar, aleevas, vakulrai, bruvers, larowlan, vpeltot, wjaspers, Sonal.Sangale, jan.stoeckler, jofitz, vdsh, minorOffense, LewisNyman, mgifford, Berdir, tstoeckler, Luke.Leber, Hanno, alexpott, andypost, yannickoo, hchonov, quietone, David_Rothstein, fgm, mr.baileys, MaxMendez, mpp: Allow text field to enforce a specific text format
2022-11-29 11:37:35 +00:00
|
|
|
allowed_formats:
|
|
|
|
type: sequence
|
|
|
|
label: 'Allowed text formats'
|
|
|
|
sequence:
|
|
|
|
type: string
|
2013-04-23 07:54:10 +00:00
|
|
|
|
2014-11-24 22:17:32 +00:00
|
|
|
field.value.text_with_summary:
|
|
|
|
type: mapping
|
2013-04-23 07:54:10 +00:00
|
|
|
label: 'Default value'
|
2014-11-24 22:17:32 +00:00
|
|
|
mapping:
|
|
|
|
value:
|
|
|
|
type: text
|
|
|
|
label: 'Body'
|
|
|
|
summary:
|
|
|
|
type: string
|
|
|
|
label: 'Summary'
|
|
|
|
format:
|
|
|
|
type: string
|
|
|
|
label: 'Text format'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.formatter.settings.text_default:
|
|
|
|
type: mapping
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Formatted text default display format settings'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.formatter.settings.text_summary_or_trimmed:
|
|
|
|
type: mapping
|
2014-09-17 20:59:08 +00:00
|
|
|
label: 'Summary or trimmed formatted text display format settings'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
mapping:
|
2014-11-21 23:38:41 +00:00
|
|
|
trim_length:
|
|
|
|
type: integer
|
|
|
|
label: 'Trim length'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.formatter.settings.text_trimmed:
|
|
|
|
type: mapping
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
label: 'Trimmed text display format settings'
|
|
|
|
mapping:
|
2014-11-21 23:38:41 +00:00
|
|
|
trim_length:
|
|
|
|
type: integer
|
|
|
|
label: 'Trim length'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.widget.settings.text_textarea:
|
|
|
|
type: mapping
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
label: 'Text area (multiple rows) display format settings'
|
|
|
|
mapping:
|
2014-11-21 23:38:41 +00:00
|
|
|
rows:
|
|
|
|
type: integer
|
|
|
|
label: 'Rows'
|
|
|
|
placeholder:
|
|
|
|
type: label
|
|
|
|
label: 'Placeholder'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.widget.settings.text_textarea_with_summary:
|
|
|
|
type: mapping
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
label: 'Text area with a summary display format settings'
|
|
|
|
mapping:
|
2014-11-21 23:38:41 +00:00
|
|
|
rows:
|
|
|
|
type: integer
|
|
|
|
label: 'Rows'
|
|
|
|
summary_rows:
|
|
|
|
type: integer
|
|
|
|
label: 'Number of summary rows'
|
|
|
|
placeholder:
|
2023-08-01 15:34:53 +00:00
|
|
|
type: text
|
2014-11-21 23:38:41 +00:00
|
|
|
label: 'Placeholder'
|
Issue #1704864 by nick_schuch, Stalski, larowlan, kostyashupenko, andymartha, xjm, webchick, zuuperman, tim.plunkett, catch, alexverb, irawan, ling-drupal: Add a "Required" and "Show by default" option for "Text area with a summary" field/widget
2019-06-28 02:01:21 +00:00
|
|
|
show_summary:
|
|
|
|
type: boolean
|
|
|
|
label: 'Always show summary'
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
|
2014-11-21 23:38:41 +00:00
|
|
|
field.widget.settings.text_textfield:
|
|
|
|
type: mapping
|
Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
2014-01-30 12:04:18 +00:00
|
|
|
label: 'Text field display format settings'
|
|
|
|
mapping:
|
2014-11-21 23:38:41 +00:00
|
|
|
size:
|
|
|
|
type: integer
|
|
|
|
label: 'Size of textfield'
|
|
|
|
placeholder:
|
|
|
|
type: label
|
|
|
|
label: 'Placeholder'
|