LinkAccessConstraint.php
Same filename in other branches
Namespace
Drupal\link\Plugin\Validation\ConstraintFile
-
core/
modules/ link/ src/ Plugin/ Validation/ Constraint/ LinkAccessConstraint.php
View source
<?php
namespace Drupal\link\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Defines an access validation constraint for links.
*
* @Constraint(
* id = "LinkAccess",
* label = @Translation("Link URI can be accessed by the user.", context = "Validation"),
* )
*/
class LinkAccessConstraint extends Constraint {
public $message = "The path '@uri' is inaccessible.";
}
Classes
Title | Deprecated | Summary |
---|---|---|
LinkAccessConstraint | Defines an access validation constraint for links. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.