LinkExternalProtocolsConstraint.php in Drupal 9
Same filename and directory in other branches
Namespace
Drupal\link\Plugin\Validation\ConstraintFile
core/modules/link/src/Plugin/Validation/Constraint/LinkExternalProtocolsConstraint.phpView source
<?php
namespace Drupal\link\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Defines a protocol validation constraint for links to external URLs.
*
* @Constraint(
* id = "LinkExternalProtocols",
* label = @Translation("No dangerous external protocols", context = "Validation"),
* )
*/
class LinkExternalProtocolsConstraint extends Constraint {
public $message = "The path '@uri' is invalid.";
}
Classes
Name | Description |
---|---|
LinkExternalProtocolsConstraint | Defines a protocol validation constraint for links to external URLs. |