You are here

public function WordsFieldValidationRule::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/WordsFieldValidationRule.php, line 42

Class

WordsFieldValidationRule
WordsFieldValidationRule.

Namespace

Drupal\field_validation\Plugin\FieldValidationRule

Code

public function defaultConfiguration() {
  return [
    'min' => NULL,
    'max' => NULL,
  ];
}