Skip to content
Snippets Groups Projects

#3471171: Allow components to use textarea in favor of input

Merged #3471171: Allow components to use textarea in favor of input
1 unresolved thread
1 unresolved thread
Files
9
@@ -19,6 +19,9 @@ class StringLongItemOverride extends StringLongItem {
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties = parent::propertyDefinitions($field_definition);
$properties['value']->addConstraint('StringSemantics', StringSemanticsConstraint::PROSE);
$properties['value']->addConstraint('Regex', [
'pattern' => '(.|\r?\n)*',
]);
return $properties;
}
Loading