You are here

public function ContextualValidatorInterface::validatePropertyValue 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::validatePropertyValue()

Validates a value against the constraints specified for an object's property.

Parameters

object|string $objectOrClass The object or its class name:

string $propertyName The name of the property:

mixed $value The value to validate against the: property's constraints

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

Return value

ContextualValidatorInterface This validator

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

File

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

Class

ContextualValidatorInterface
A validator in a specific execution context.

Namespace

Symfony\Component\Validator\Validator

Code

public function validatePropertyValue($objectOrClass, $propertyName, $value, $groups = null);