You are here

public function ConstraintViolation::getMessageTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolation.php \Symfony\Component\Validator\ConstraintViolation::getMessageTemplate()

Returns the raw violation message.

The raw violation message contains placeholders for the parameters returned by {@link getMessageParameters}. Typically you'll pass the message template and parameters to a translation engine.

Return value

string The raw violation message.

Overrides ConstraintViolationInterface::getMessageTemplate

File

vendor/symfony/validator/ConstraintViolation.php, line 137

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getMessageTemplate() {
  return $this->messageTemplate;
}