class LinkExternalProtocolsConstraint
Same name in other branches
- 9 core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraint
- 8.9.x core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraint
- 11.x core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraint.php \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraint
Defines a protocol validation constraint for links to external URLs.
Hierarchy
- class \Drupal\link\Plugin\Validation\Constraint\LinkExternalProtocolsConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of LinkExternalProtocolsConstraint
1 file declares its use of LinkExternalProtocolsConstraint
- LinkExternalProtocolsConstraintValidatorTest.php in core/
modules/ link/ tests/ src/ Unit/ Plugin/ Validation/ Constraint/ LinkExternalProtocolsConstraintValidatorTest.php
File
-
core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkExternalProtocolsConstraint.php, line 12
Namespace
Drupal\link\Plugin\Validation\ConstraintView source
class LinkExternalProtocolsConstraint extends SymfonyConstraint {
public $message = "The path '@uri' is invalid.";
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.