class PathAliasConstraint in Drupal 8
Same name and namespace in other branches
- 9 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
Validation constraint for changing path aliases in pending revisions.
Plugin annotation
@Constraint(
id = "PathAlias",
label = @Translation("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 15
Namespace
Drupal\path\Plugin\Validation\ConstraintView source
class PathAliasConstraint extends Constraint {
public $message = 'You can only change the URL alias for the <em>published</em> version of this content.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PathAliasConstraint:: |
public | property |