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;
} /**
* {@inheritdoc}
*/
public function startContext($root = NULL
): ContextualValidatorInterface
{ return new RecursiveContextualValidator($this->contextFactory->
createContext($this,
$root),
$this,
$this->constraintValidatorFactory,
$this->typedDataManager
);
} /**
* {@inheritdoc}
*/
public function inContext(ExecutionContextInterface
$context): ContextualValidatorInterface
{ return new RecursiveContextualValidator($context,
$this,
$this->constraintValidatorFactory,
$this->typedDataManager
);
} /**
* {@inheritdoc}
*
* @param \Drupal\Core\TypedData\TypedDataInterface $typed_data
* A typed data object containing the value to validate.
*/