You are here

public function CallbackValidatorTest_Object::validate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/CallbackValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest_Object::validate()

File

vendor/symfony/validator/Tests/Constraints/CallbackValidatorTest.php, line 32

Class

CallbackValidatorTest_Object

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function validate(ExecutionContextInterface $context) {
  $context
    ->addViolation('My message', array(
    '{{ value }}' => 'foobar',
  ));
  return false;
}