Drupal 8  8.0.2
ConstraintViolationBuilder Class Reference
Inheritance diagram for ConstraintViolationBuilder:

Public Member Functions

 __construct (ConstraintViolationList $violations, Constraint $constraint, $message, array $parameters, $root, $propertyPath, $invalidValue, TranslatorInterface $translator, $translationDomain=null)
 
 atPath ($path)
 
 setParameter ($key, $value)
 
 setParameters (array $parameters)
 
 setTranslationDomain ($translationDomain)
 
 setInvalidValue ($invalidValue)
 
 setPlural ($number)
 
 setCode ($code)
 
 setCause ($cause)
 
 addViolation ()
 

Protected Attributes

 $violations
 
 $message
 
 $parameters
 
 $root
 
 $invalidValue
 
 $propertyPath
 
 $translator
 
 $translationDomain
 
 $plural
 
 $constraint
 
 $code
 
 $cause
 

Detailed Description

Defines a constraint violation builder for the Typed Data validator.

We do not use the builder provided by Symfony as it is marked internal.

Constructor & Destructor Documentation

__construct ( ConstraintViolationList  $violations,
Constraint  $constraint,
  $message,
array  $parameters,
  $root,
  $propertyPath,
  $invalidValue,
TranslatorInterface  $translator,
  $translationDomain = null 
)

Constructs a new ConstraintViolationBuilder instance.

Parameters
\Symfony\Component\Validator\ConstraintViolationList$violationsThe violation list.
\Symfony\Component\Validator\Constraint$constraintThe constraint.
string$messageThe message.
array$parametersThe message parameters.
mixed$rootThe root.
string$propertyPathThe property string.
mixed$invalidValueThe invalid value.
\Drupal\Core\Validation\TranslatorInterface$translatorThe translator.
null$translationDomain(optional) The translation domain.

References Drupal\root().

Here is the call graph for this function:

Member Function Documentation

addViolation ( )

{}

References Drupal\root().

Here is the call graph for this function:

atPath (   $path)

{}

setCause (   $cause)

{}

setCode (   $code)

{}

setInvalidValue (   $invalidValue)

{}

setParameter (   $key,
  $value 
)

{}

setParameters ( array  $parameters)

{}

setPlural (   $number)

{}

setTranslationDomain (   $translationDomain)

{}


The documentation for this class was generated from the following file: