public TypedDataManager::setValidator(ValidatorInterface $validator)
Sets the validator for validating typed data.
Parameters
\Symfony\Component\Validator\Validator\ValidatorInterface $validator: The validator object to set.
Overrides TypedDataManagerInterface::setValidator
File
- core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 206
Class
- TypedDataManager
- Manages data type plugins.
Namespace
Drupal\Core\TypedData
Code
public function setValidator(ValidatorInterface $validator) { $this->validator = $validator; }
Please login to continue.