You are here

public function ConstraintViolationInterface::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.

1 method overrides ConstraintViolationInterface::getMessageTemplate()
ConstraintViolation::getMessageTemplate in lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Returns the raw violation message.

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationInterface.php, line 60

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

Code

public function getMessageTemplate();