You are here

SocialUserNameConstraint.php in Open Social 8.2

File

modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
View source
<?php

namespace Drupal\social_user\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Checks if a value is a valid user name.
 *
 * @Constraint(
 *   id = "SocialUserName",
 *   label = @Translation("Social User name", context = "Validation"),
 * )
 */
class SocialUserNameConstraint extends Constraint {
  public $usernameIsEmailMessage = 'The username can not be an email address.';

}

Classes

Namesort descending Description
SocialUserNameConstraint Checks if a value is a valid user name.