You are here

function double_field_validation_constraint_alter in Double Field 8.3

Same name and namespace in other branches
  1. 4.x double_field.module \double_field_validation_constraint_alter()

Implements hook_validation_constraint_alter().

File

./double_field.module, line 95
Primary module hooks for Double Field module.

Code

function double_field_validation_constraint_alter(array &$definitions) {

  // This constraint is required to test empty boolean values.
  $definitions['NotEqualTo']['class'] = '\\Symfony\\Component\\Validator\\Constraints\\NotEqualTo';
}