Skip to content
Snippets Groups Projects

Add machine name constraints

Files
2
@@ -2,9 +2,20 @@ block.settings.webform_block:
type: block_settings
label: 'Webforms block'
mapping:
id:
type: string
label: Identifier
constraints:
Regex:
pattern: '/^[a-z0-9_]+$/'
message: "The %value machine name is not valid."
webform_id:
type: string
label: Webform
constraints:
Regex:
pattern: '/^[a-z0-9_]+$/'
message: "The %value machine name is not valid."
default_data:
type: text
label: 'Default webform submission data'
Loading