PathAliasConstraint.php

Same filename in other branches
  1. 9 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php
  2. 10 core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php
  3. 11.x core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php

Namespace

Drupal\path\Plugin\Validation\Constraint

File

core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php

View source
<?php

namespace Drupal\path\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Validation constraint for changing path aliases in pending revisions.
 *
 * @Constraint(
 *   id = "PathAlias",
 *   label = @Translation("Path alias.", context = "Validation"),
 * )
 */
class PathAliasConstraint extends Constraint {
    public $message = 'You can only change the URL alias for the <em>published</em> version of this content.';

}

Classes

Title Deprecated Summary
PathAliasConstraint Validation constraint for changing path aliases in pending revisions.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.