public function ValidatorInterface::validatePropertyValue

Validate a property of a value against a potential value.

The accepted values depend on the {@link MetadataFactoryInterface} implementation.

@api

Parameters

string $containingValue The value containing the property.:

string $property The name of the property to validate:

string $value The value to validate against the: constraints of the property.

array|null $groups The validation groups to validate.:

Return value

ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.

1 method overrides ValidatorInterface::validatePropertyValue()
Validator::validatePropertyValue in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Validator.php

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ValidatorInterface.php, line 77

Class

ValidatorInterface
Validates values and graphs of objects and arrays.

Namespace

Symfony\Component\Validator

Code

public function validatePropertyValue($containingValue, $property, $value, $groups = null);