You are here

public function ConstraintViolation::getMessageTemplate in Plug 7

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.

@api

Return value

string The raw violation message.

Overrides ConstraintViolationInterface::getMessageTemplate

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolation.php, line 137

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

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