Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
When.php
When::$constraints
Type:
constraints
File
vendor/
symfony/
validator/
Constraints/
When.php
, line 28
Class
When
Conditionally apply validation constraints based on an expression using the ExpressionLanguage syntax.
Namespace
Symfony\Component\Validator\Constraints
Code
public array|Constraint $constraints = [];
RSS feed