UriHostConstraint::$message

The error message if validation fails.

Type: string

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UriHostConstraint.php, line 25

Class

UriHostConstraint
Checks if a string conforms to the RFC 3986 host component.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public string $message = 'This value should conform to RFC 3986 URI host component.';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.