public function ConstraintViolationInterface::getCode

Returns a machine-digestible error code for the violation.

Return value

mixed The error code.

1 method overrides ConstraintViolationInterface::getCode()
ConstraintViolation::getCode in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Returns a machine-digestible error code for the violation.

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();