public function 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: 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\TypedDataCode
public function setValidationConstraintManager(ConstraintManager $constraintManager) { $this->constraintManager = $constraintManager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!TypedDataManager.php/function/TypedDataManager::setValidationConstraintManager/8.1.x