Commit 8b388f07 authored by alexpott's avatar alexpott

Issue #2977175 by borisson_, PieterJanPut, tstoeckler, msankhala:...

Issue #2977175 by borisson_, PieterJanPut, tstoeckler, msankhala: DataDefinition::setConstraints() should be on DataDefinitionInterface
parent 396936c4
......@@ -273,7 +273,14 @@ public function getConstraint($constraint_name) {
}
/**
* {@inheritdoc}
* Sets an array of validation constraints.
*
* @param array $constraints
* An array of validation constraint definitions, keyed by constraint name.
* Each constraint definition can be used for instantiating
* \Symfony\Component\Validator\Constraint objects.
*
* @return $this
*/
public function setConstraints(array $constraints) {
$this->definition['constraints'] = $constraints;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment