You are here

public function CallbackValidatorTest_Object::validate in Plug 7

File

lib/Symfony/validator/Symfony/Component/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;
}