RecursiveContextualValidator::__construct

public RecursiveContextualValidator::__construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadata_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager)

Creates a validator for the given context.

Parameters

\Symfony\Component\Validator\Context\ExecutionContextInterface $context: The factory for creating new contexts.

\Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface $metadata_factory: The metadata factory.

\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/RecursiveContextualValidator.php, line 65

Class

RecursiveContextualValidator
Defines a recursive contextual validator for Typed Data.

Namespace

Drupal\Core\TypedData\Validation

Code

public function __construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadata_factory, ConstraintValidatorFactoryInterface $validator_factory, TypedDataManagerInterface $typed_data_manager) {
  $this->context = $context;
  $this->metadataFactory = $metadata_factory;
  $this->constraintValidatorFactory = $validator_factory;
  $this->typedDataManager = $typed_data_manager;
}
doc_Drupal
2016-10-29 09:36:47
Comments
Leave a Comment

Please login to continue.