TypedDataManager::setValidator

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;
}
doc_Drupal
2016-10-29 09:50:09
Comments
Leave a Comment

Please login to continue.