Drupal 8  8.0.2
RecursiveValidator Class Reference
Inheritance diagram for RecursiveValidator:

Public Member Functions

 __construct (ExecutionContextFactoryInterface $context_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager)
 
 startContext ($root=NULL)
 
 inContext (ExecutionContextInterface $context)
 
 getMetadataFor ($typed_data)
 
 hasMetadataFor ($value)
 
 validate ($value, $constraints=null, $groups=null)
 
 validateProperty ($object, $propertyName, $groups=NULL)
 
 validatePropertyValue ($objectOrClass, $propertyName, $value, $groups=NULL)
 

Protected Attributes

 $contextFactory
 
 $constraintValidatorFactory
 
 $typedDataManager
 

Detailed Description

Defines a recursive validator for Typed Data.

The difference to is that we just allow to validate typed data objects.

Constructor & Destructor Documentation

__construct ( ExecutionContextFactoryInterface  $context_factory,
ConstraintValidatorFactoryInterface  $validator_factory,
TypedDataManagerInterface  $typed_data_manager 
)

Creates a new validator.

Parameters
\Symfony\Component\Validator\Context\ExecutionContextFactoryInterface$context_factoryThe factory for creating new contexts.
\Symfony\Component\Validator\ConstraintValidatorFactoryInterface$validator_factoryThe constraint validator factory.
\Drupal\Core\TypedData\TypedDataManagerInterface$typed_data_managerThe typed data manager.

References Drupal\typedDataManager().

Here is the call graph for this function:

Member Function Documentation

getMetadataFor (   $typed_data)

{}

Parameters
\Drupal\Core\TypedData\TypedDataInterface$typed_dataA typed data object containing the value to validate.
hasMetadataFor (   $value)

{}

inContext ( ExecutionContextInterface  $context)

{}

References Drupal\typedDataManager().

Here is the call graph for this function:

startContext (   $root = NULL)

{}

Referenced by RecursiveValidator\validate(), RecursiveValidator\validateProperty(), and RecursiveValidator\validatePropertyValue().

Here is the caller graph for this function:

validate (   $value,
  $constraints = null,
  $groups = null 
)

{}

References RecursiveValidator\startContext().

Here is the call graph for this function:

validateProperty (   $object,
  $propertyName,
  $groups = NULL 
)

{}

References RecursiveValidator\startContext().

Here is the call graph for this function:

validatePropertyValue (   $objectOrClass,
  $propertyName,
  $value,
  $groups = NULL 
)

{}

References RecursiveValidator\startContext().

Here is the call graph for this function:


The documentation for this class was generated from the following file: