public function ConstraintViolation::getMessage

Returns the violation message.

@api

Return value

string The violation message.

Overrides ConstraintViolationInterface::getMessage

1 call to ConstraintViolation::getMessage()
ConstraintViolation::__toString in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Converts the violation into a string for debugging purposes.

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php, line 140

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getMessage() {
  return $this->message;
}