class SocialUserNameConstraint in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.2 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.3 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.5 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.6 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.7 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 8.8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 10.3.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 10.0.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 10.1.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php \Drupal\social_user\Plugin\Validation\Constraint\SocialUserNameConstraint
- 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\ConstraintView source
class SocialUserNameConstraint extends Constraint {
public $usernameIsEmailMessage = 'The username can not be an email address.';
}