function UriHostConstraint::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UriHostConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UriHostConstraint.php, line 21
Class
- UriHostConstraint
- Checks if a string conforms to the RFC 3986 host component.
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = 'This value should conform to RFC 3986 URI host component.', ?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.