public function LengthFieldValidationRule::defaultConfiguration in Field Validation 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FieldValidationRuleBase::defaultConfiguration
File
- src/
Plugin/ FieldValidationRule/ LengthFieldValidationRule.php, line 41
Class
- LengthFieldValidationRule
- LengthFieldValidationRule.
Namespace
Drupal\field_validation\Plugin\FieldValidationRuleCode
public function defaultConfiguration() {
return [
'min' => NULL,
'max' => NULL,
'strip_tags' => FALSE,
'trim' => FALSE,
];
}