Select Git revision
CommentNameConstraint.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CommentNameConstraint.php 489 B
<?php
/**
* @file
* Contains \Drupal\comment\Plugin\Validation\Constraint\CommentNameConstraint.
*/
namespace Drupal\comment\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Supports validating comment author names.
*
* @Plugin(
* id = "CommentName",
* label = @Translation("Comment author name", context = "Validation")
* )
*/
class CommentNameConstraint extends Constraint {
public $message = '%name belongs to a registered user.';
}