class PathAliasConstraint
Same name in other branches
- 8.9.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
- 11.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.
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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
PathAliasConstraint::$message | public | property |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.