You are here

public function ContextualValidatorInterface::validateProperty in Zircon Profile 8

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

Validates a property of an object against the constraints specified for this property.

Parameters

object $object The object:

string $propertyName The name of the validated property:

array|null $groups The validation groups to validate. If: none is given, "Default" is assumed

Return value

ContextualValidatorInterface This validator

2 methods override ContextualValidatorInterface::validateProperty()
RecursiveContextualValidator::validateProperty in vendor/symfony/validator/Validator/RecursiveContextualValidator.php
Validates a property of an object against the constraints specified for this property.
RecursiveContextualValidator::validateProperty in core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php
Validates a property of an object against the constraints specified for this property.

File

vendor/symfony/validator/Validator/ContextualValidatorInterface.php, line 66

Class

ContextualValidatorInterface
A validator in a specific execution context.

Namespace

Symfony\Component\Validator\Validator

Code

public function validateProperty($object, $propertyName, $groups = null);