function LinkExternalProtocolsConstraint::__construct
Same name and namespace in other branches
- main core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkExternalProtocolsConstraint.php, line 19
Class
- LinkExternalProtocolsConstraint
- Defines a protocol validation constraint for links to external URLs.
Namespace
Drupal\link\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = "The path '@uri' is invalid.", ?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.