ValidPathConstraint.php
Same filename and directory in other branches
- 11.x core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php
- 10 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php
- 9 core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php
- 8.9.x core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraint.php
Namespace
Drupal\Core\Path\Plugin\Validation\ConstraintFile
-
core/
lib/ Drupal/ Core/ Path/ Plugin/ Validation/ Constraint/ ValidPathConstraint.php
View source
<?php
namespace Drupal\Core\Path\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Attribute\HasNamedArguments;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;
/**
* Validation constraint for valid system paths.
*/
class ValidPathConstraint extends SymfonyConstraint {
public function __construct(mixed $options = NULL, public $message = "Either the path '%link_path' is invalid or you do not have access to it.", ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| ValidPathConstraint | Validation constraint for valid system paths. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.