You are here

class PathAliasConstraint in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php \Drupal\path\Plugin\Validation\Constraint\PathAliasConstraint
  2. 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\Constraint
View source
class PathAliasConstraint extends Constraint {
  public $message = 'You can only change the URL alias for the <em>published</em> version of this content.';

}

Members