system.data_types.schema.yml

drupal/core/modules/system/config/schema/system.data_types.schema.yml

File

drupal/core/modules/system/config/schema/system.data_types.schema.yml
View source
  1. # Basic scalar data types from typed data.
  2. boolean:
  3. label: 'Boolean'
  4. class: '\Drupal\Core\TypedData\Type\Boolean'
  5. email:
  6. label: 'Email'
  7. class: '\Drupal\Core\TypedData\Type\Email'
  8. integer:
  9. label: 'Integer'
  10. class: '\Drupal\Core\TypedData\Type\Integer'
  11. string:
  12. label: 'String'
  13. class: '\Drupal\Core\TypedData\Type\String'
  14. uri:
  15. label: 'Uri'
  16. class: '\Drupal\Core\TypedData\Type\Uri'
  17. # Basic data types for configuration.
  18. undefined:
  19. label: 'Undefined'
  20. class: '\Drupal\Core\Config\Schema\Property'
  21. mapping:
  22. label: Mapping
  23. class: '\Drupal\Core\Config\Schema\Mapping'
  24. sequence:
  25. label: Sequence
  26. class: '\Drupal\Core\Config\Schema\Sequence'
  27. # Default mapping for unknown types or types not found.
  28. default:
  29. type: undefined
  30. label: 'Unknown'
  31. # Simple extended data types:
  32. # Human readable string that must be plain text and editable with a text field.
  33. label:
  34. type: string
  35. label: 'Label'
  36. translatable: true
  37. # Internal Drupal path
  38. path:
  39. type: string
  40. label: 'Path'
  41. # Human readable string that can contain multiple lines of text or HTML.
  42. text:
  43. type: string
  44. label: 'Text'
  45. translatable: true
  46. # Complex extended data types:
  47. # Mail text with subject and body parts.
  48. mail:
  49. type: mapping
  50. label: 'Mail'
  51. mapping:
  52. subject:
  53. type: label
  54. label: 'Subject'
  55. body:
  56. type: text
  57. label: 'Body'
  58. # Filter with module and status.
  59. filter:
  60. type: mapping
  61. label: 'Filter'
  62. mapping:
  63. module:
  64. type: string
  65. label: 'Module'
  66. status:
  67. type: boolean
  68. label: 'Enabled'
  69. # Date format with name and pattern.
  70. date_format:
  71. type: mapping
  72. label: 'Date Format'
  73. mapping:
  74. name:
  75. type: label
  76. label: 'Name'
  77. pattern:
  78. type: mapping
  79. label: 'Format string'
  80. mapping:
  81. php:
  82. type: label
  83. label: 'PHP date format'
  84. intl:
  85. type: label
  86. label: 'International'
  87. locked:
  88. type: boolean
  89. label: 'Locked'