You are here

public function ConstraintViolationBuilderInterface::addViolation in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface::addViolation()

Adds the violation to the current execution context.

3 methods override ConstraintViolationBuilderInterface::addViolation()
ConstraintViolationBuilder::addViolation in vendor/symfony/validator/Violation/ConstraintViolationBuilder.php
Adds the violation to the current execution context.
ConstraintViolationBuilder::addViolation in core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php
Adds the violation to the current execution context.
LegacyConstraintViolationBuilder::addViolation in vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php
Adds the violation to the current execution context.

File

vendor/symfony/validator/Violation/ConstraintViolationBuilderInterface.php, line 115

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function addViolation();