contact.schema.yml
Same filename in other branches
File
-
core/
modules/ contact/ config/ schema/ contact.schema.yml
View source
- # Schema for the configuration files of the Contact module.
-
- contact.form.*:
- type: config_entity
- label: 'Contact form'
- mapping:
- id:
- type: machine_name
- label: 'ID'
- constraints:
- Length:
- # Contact form IDs are specifically limited to 32 characters.
- # @see \Drupal\contact\ContactFormEditForm::form()
- max: 32
- label:
- type: required_label
- label: 'Label'
- recipients:
- type: sequence
- label: 'Recipients'
- sequence:
- type: email
- label: 'Email address'
- reply:
- type: text
- label: 'Auto-reply'
- weight:
- type: weight
- label: 'Weight'
- message:
- type: text
- label: 'Message displayed to user on submission'
- redirect:
- type: path
- label: 'Redirect path on submission'
-
- contact.settings:
- type: config_object
- label: 'Contact settings'
- constraints:
- FullyValidatable: ~
- mapping:
- default_form:
- type: string
- label: 'Default form identifier'
- # It is possible to not configure a default form.
- # @see \Drupal\contact\ContactFormEditForm::save()
- nullable: true
- constraints:
- ConfigExists:
- prefix: contact.form.
- flood:
- # @see \Drupal\Core\Flood\FloodInterface::isAllowed()
- type: mapping
- label: 'Flood control'
- mapping:
- limit:
- type: integer
- label: 'Limit (messages per interval)'
- constraints:
- Range:
- min: 1
- interval:
- type: integer
- label: 'Interval (seconds)'
- constraints:
- Range:
- min: 1
- user_default_enabled:
- type: boolean
- label: 'Personal contact form enabled by default'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.