TypedDataManager::setValidationConstraintManager

public TypedDataManager::setValidationConstraintManager(ConstraintManager $constraintManager)

Sets the validation constraint manager.

The validation constraint manager is used to instantiate validation constraint plugins.

Parameters

\Drupal\Core\Validation\ConstraintManager $constraintManager: The constraint manager to set.

Overrides TypedDataManagerInterface::setValidationConstraintManager

File

core/lib/Drupal/Core/TypedData/TypedDataManager.php, line 227

Class

TypedDataManager
Manages data type plugins.

Namespace

Drupal\Core\TypedData

Code

public function setValidationConstraintManager(ConstraintManager $constraintManager) {
  $this->constraintManager = $constraintManager;
}
doc_Drupal
2016-10-29 09:50:09
Comments
Leave a Comment

Please login to continue.