Initial Drupal 11 with DDEV setup
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: personal
|
||||
label: 'Personal contact form'
|
||||
recipients: { }
|
||||
reply: ''
|
||||
weight: 0
|
||||
message: 'Your message has been sent.'
|
||||
redirect: ''
|
||||
@ -0,0 +1,5 @@
|
||||
default_form: feedback
|
||||
flood:
|
||||
limit: 5
|
||||
interval: 3600
|
||||
user_default_enabled: true
|
||||
71
web/core/modules/contact/config/schema/contact.schema.yml
Normal file
71
web/core/modules/contact/config/schema/contact.schema.yml
Normal file
@ -0,0 +1,71 @@
|
||||
# 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'
|
||||
@ -0,0 +1,5 @@
|
||||
# Schema for the views plugins of the Contact module.
|
||||
|
||||
views.field.contact_link:
|
||||
type: views.field.user_link
|
||||
label: 'Link to user contact page'
|
||||
Reference in New Issue
Block a user