class UriHostConstraint
Checks if a string conforms to the RFC 3986 host component.
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\UriHostConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of UriHostConstraint
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UriHostConstraint.php, line 14
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintView source
class UriHostConstraint extends SymfonyConstraint {
/**
* The error message if validation fails.
*
* @var string
*/
public string $message = 'This value should conform to RFC 3986 URI host component.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UriHostConstraint::$message | public | property | The error message if validation fails. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.