function EntityTestCompositeConstraint::__construct
Same name and namespace in other branches
- main core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestCompositeConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ EntityTestCompositeConstraint.php, line 22
Class
- EntityTestCompositeConstraint
- Constraint with multiple fields.
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = 'Multiple fields are validated', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.