function SerializedConstraint::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/SerializedConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\SerializedConstraint::__construct()
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ SerializedConstraint.php, line 18
Class
- SerializedConstraint
- Checks for valid serialized data.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = 'This value should be a serialized object.', public string $wrongTypeMessage = 'This value should be a string, "{type}" given.', ?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.