function ExecutionContext::getConstraint
Gets the current constraint.
@internal This method is not part of the public API. It is only used to make recursive calls work.
Return value
\Symfony\Component\Validator\Constraint|null The constraint.
File
-
core/
lib/ Drupal/ Core/ Validation/ ExecutionContext.php, line 261
Class
- ExecutionContext
- Defines an execution context class.
Namespace
Drupal\Core\ValidationCode
public function getConstraint() : ?Constraint {
return $this->constraint ?? NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.