RecursiveContextualValidator

Defines a recursive contextual validator for Typed Data.

For both list and complex data it call recursively out to the properties / elements of the list.

This class calls out to some methods on the execution context marked as internal. These methods are internal to the validator (which is implemented by this class) but should not be called by users. See http://symfony.com/doc/current/contributing/code/bc.html for more information about @internal.

Hierarchy

See also

\Drupal\Core\TypedData\Validation\RecursiveValidator::startContext()

\Drupal\Core\TypedData\Validation\RecursiveValidator::inContext()

File

core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php, line 30

Namespace

Drupal\Core\TypedData\Validation

Members

Name Modifiers Type Description
RecursiveContextualValidator::$constraintValidatorFactory protected property The constraint validator factory.
RecursiveContextualValidator::$context protected property The execution context.
RecursiveContextualValidator::$metadataFactory protected property The metadata factory.
RecursiveContextualValidator::atPath public function Appends the given path to the property path of the context. Overrides ContextualValidatorInterface::atPath
RecursiveContextualValidator::getViolations public function Returns the violations that have been generated so far in the context of the validator. Overrides ContextualValidatorInterface::getViolations
RecursiveContextualValidator::validate public function Validates a value against a constraint or a list of constraints. Overrides ContextualValidatorInterface::validate
RecursiveContextualValidator::validateConstraints protected function Validates a node's value against all constraints in the given group.
RecursiveContextualValidator::validateNode protected function Validates a Typed Data node in the validation tree.
RecursiveContextualValidator::validateProperty public function Validates a property of an object against the constraints specified for this property. Overrides ContextualValidatorInterface::validateProperty
RecursiveContextualValidator::validatePropertyValue public function Validates a value against the constraints specified for an object's property. Overrides ContextualValidatorInterface::validatePropertyValue
RecursiveContextualValidator::__construct public function Creates a validator for the given context.
doc_Drupal
2016-10-29 09:36:45
Comments
Leave a Comment

Please login to continue.