RecursiveValidator::__construct

public RecursiveValidator::__construct(ExecutionContextFactoryInterface $context_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager)

Creates a new validator.

Parameters

\Symfony\Component\Validator\Context\ExecutionContextFactoryInterface $context_factory: The factory for creating new contexts.

\Symfony\Component\Validator\ConstraintValidatorFactoryInterface $validator_factory: The constraint validator factory.

\Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager: The typed data manager.

File

core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php, line 45

Class

RecursiveValidator
Defines a recursive validator for Typed Data.

Namespace

Drupal\Core\TypedData\Validation

Code

public function __construct(ExecutionContextFactoryInterface $context_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager) {
  $this->contextFactory = $context_factory;
  $this->constraintValidatorFactory = $validator_factory;
  $this->typedDataManager = $typed_data_manager;
}
doc_Drupal
2016-10-29 09:36:50
Comments
Leave a Comment

Please login to continue.