config_test.schema.yml
Same filename in other branches
File
-
core/
modules/ config/ tests/ config_test/ config/ schema/ config_test.schema.yml
View source
- # Schema for the configuration files of the Configuration Test module.
-
- config_test_dynamic:
- type: config_entity
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- weight:
- type: integer
- label: 'Weight'
- style:
- type: string
- label: 'style'
- size:
- type: string
- label: 'Size'
- size_value:
- type: string
- label: 'Size value'
- protected_property:
- type: string
- label: 'Protected property'
-
- config_test.dynamic.*:
- type: config_test_dynamic
- label: 'Config test dynamic settings'
-
- config_test.dynamic.*.*:
- type: config_test_dynamic
- label: 'Config test dynamic settings'
-
- config_test.dynamic.*.third_party.node:
- type: mapping
- mapping:
- foo:
- type: string
-
- config_test.query.*:
- type: config_entity
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- array:
- type: sequence
- label: 'Array level 1'
- sequence:
- type: sequence
- label: 'Array level 2'
- sequence:
- type: integer
- label: 'Value'
- number:
- type: integer
- label: 'number'
-
- config_test.types:
- type: config_object
- label: 'Configuration type'
- mapping:
- array:
- type: sequence
- label: 'Array'
- sequence:
- type: string
- label: 'Item'
- boolean:
- type: boolean
- label: 'Boolean'
- exp:
- type: float
- label: 'Exponential'
- float:
- type: float
- label: 'Float'
- float_as_integer:
- type: float
- label: 'Float'
- hex:
- type: integer
- label: 'Hexadecimal'
- int:
- type: integer
- label: 'Integer'
- octal:
- type: integer
- label: 'Octal'
- string:
- type: string
- label: 'String'
- string_int:
- type: string
- label: 'String integer'
-
- config_test.no_status.default:
- type: config_object
- label: 'Configuration no status default'
- mapping:
- id:
- type: string
- label: 'ID'
- label:
- type: label
- label: 'Label'
- uuid:
- type: string
- label: 'UUID'
-
- config_test.system:
- type: config_object
- label: 'Configuration system'
- mapping:
- foo:
- type: string
- label: 'Foo'
- baz:
- type: string
- label: 'Baz'
- '404':
- type: string
- label: '404'
-
- config_test.new:
- type: config_object
- label: 'Configuration test'
- mapping:
- key:
- type: string
- label: 'Test setting'
- new_key:
- type: string
- label: 'Test setting'
- uuid:
- type: uuid
-
- config_test.old:
- type: config_test.new
-
- config_test.foo:
- type: config_object
- label: 'Configuration test'
- mapping:
- value:
- type: mapping
- label: 'Value'
- mapping:
- key:
- type: string
- label: 'Key'
- label:
- type: label
- label: 'Label'
-
- config_test.bar:
- type: config_test.foo
-
- system.action.*.third_party.config_test:
- type: mapping
- label: 'Third party setting for action entity'
- mapping:
- integer:
- type: integer
- label: 'Integer'
-
- config_test.validation:
- type: config_object
- label: 'Configuration type'
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateMapping]
- mapping:
- llama:
- type: string
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateLlama]
- cat:
- type: mapping
- mapping:
- type:
- type: string
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateCats]
- count:
- type: integer
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateCatCount]
- giraffe:
- type: sequence
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateSequence]
- sequence:
- type: string
- constraints:
- Callback:
- callback: [\Drupal\config_test\ConfigValidation, validateGiraffes]
- uuid:
- type: uuid
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.