You are here

class SocialUserNameConstraint in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  2. 8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  3. 8.2 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  4. 8.3 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  5. 8.5 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  6. 8.6 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  7. 8.7 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  8. 8.8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  9. 10.3.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  10. 10.0.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  11. 10.1.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
  12. 10.2.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint

Checks if a value is a valid user name.

Plugin annotation


@Constraint(
  id = "SocialUserName",
  label = @Translation("Social User name", context = "Validation"),
)

Hierarchy

  • class \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of SocialUserNameConstraint

1 file declares its use of SocialUserNameConstraint
SocialUserNameConstraintTest.php in modules/social_features/social_user/tests/src/Unit/Validation/Constraint/SocialUserNameConstraintTest.php

File

modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php, line 15

Namespace

Drupal\social_user\Plugin\Validation\Constraint
View source
class SocialUserNameConstraint extends Constraint {
  public $usernameIsEmailMessage = 'The username can not be an email address.';

}

Members