Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConstraintViolationInterface.php

function ConstraintViolationInterface::getMessageTemplate

Returns the raw violation message.

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

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

File

vendor/symfony/validator/ConstraintViolationInterface.php, line 48

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

Code

public function getMessageTemplate() : string;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal