function TypedDataManagerInterface::setValidator

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php \Drupal\Core\TypedData\TypedDataManagerInterface::setValidator()
  2. 8.9.x core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php \Drupal\Core\TypedData\TypedDataManagerInterface::setValidator()
  3. 10 core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php \Drupal\Core\TypedData\TypedDataManagerInterface::setValidator()

Sets the validator for validating typed data.

Parameters

\Symfony\Component\Validator\Validator\ValidatorInterface $validator: The validator object to set.

1 method overrides TypedDataManagerInterface::setValidator()
TypedDataManager::setValidator in core/lib/Drupal/Core/TypedData/TypedDataManager.php
Sets the validator for validating typed data.

File

core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php, line 179

Class

TypedDataManagerInterface
Defines an interface for typed data manager.

Namespace

Drupal\Core\TypedData

Code

public function setValidator(ValidatorInterface $validator);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.