SocialUserNameConstraint.php in Open Social 8.7
Same filename and directory in other branches
- 8.9 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.2 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.3 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.4 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.5 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.6 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 8.8 modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 10.3.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 10.0.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 10.1.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
- 10.2.x modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.php
File
modules/social_features/social_user/src/Plugin/Validation/Constraint/SocialUserNameConstraint.phpView 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
Name | Description |
---|---|
SocialUserNameConstraint | Checks if a value is a valid user name. |