view core/modules/path/src/Plugin/Validation/Constraint/PathAliasConstraint.php @ 9:1fc0ff908d1f

Add another data file
author Chris Cannam
date Mon, 05 Feb 2018 12:34:32 +0000
parents 4c8ae668cc8c
children
line wrap: on
line 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.';

}