hook_validation_constraint_alter(array &$definitions)
Alter validation constraint plugin definitions.
array[] $definitions: The array of validation constraint definitions, keyed by plugin ID.
\Drupal\Core\Validation\ConstraintManager
\Drupal\Core\Validation\Annotation\Constraint
function hook_validation_constraint_alter(array &$definitions) { $definitions['Null']['class'] = '\Drupal\mymodule\Validator\Constraints\MyClass'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!core.api.php/function/hook_validation_constraint_alter/8.1.x