Returns a machine-digestible error code for the violation.
Return value
mixed The error code.
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolationInterface.php, line 135
Class
- ConstraintViolationInterface
- A violation of a constraint that happened during validation.
Namespace
Symfony\Component\Validator
Code
public function getCode();