class ValidPathConstraint
Same name in other branches
- 9 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraint
- 10 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraint
- 11.x core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraint
Validation constraint for valid system paths.
Plugin annotation
@Constraint(
id = "ValidPath",
label = @Translation("Valid path.", context = "Validation"),
)
Hierarchy
- class \Drupal\Core\Path\Plugin\Validation\Constraint\ValidPathConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ValidPathConstraint
File
-
core/
lib/ Drupal/ Core/ Path/ Plugin/ Validation/ Constraint/ ValidPathConstraint.php, line 15
Namespace
Drupal\Core\Path\Plugin\Validation\ConstraintView source
class ValidPathConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = "Either the path '%link_path' is invalid or you do not have access to it.";
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ValidPathConstraint::$message | public | property | The default violation message. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.