class PathAliasConstraint
Same name and namespace in other branches
- 11.x core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
- 10 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
- 9 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
- 8.9.x core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
Validation constraint for changing path aliases in pending revisions.
Attributes
#[Constraint(id: 'PathAlias', label: new TranslatableMarkup('Path alias.', [], [
'context' => 'Validation',
]))]
Hierarchy
- class \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of PathAliasConstraint
File
-
core/
modules/ path/ src/ Plugin/ Validation/ Constraint/ PathAliasConstraint.php, line 13
Namespace
Drupal\path\Plugin\Validation\ConstraintView source
class PathAliasConstraint extends SymfonyConstraint {
public function __construct(mixed $options = NULL, public $message = 'You can only change the URL alias for the <em>published</em> version of this content.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| PathAliasConstraint::__construct | public | function | #[HasNamedArguments] |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.