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

@api

Return value

string The raw violation message.

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

File

drupal/core/vendor/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();