UniqueNickname.php in Open Social 10.1.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
- 8.7 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
- 8.8 modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
- 10.3.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
- 10.0.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
- 10.2.x modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.php
File
modules/social_features/social_profile/modules/social_profile_fields/src/Plugin/Validation/Constraint/UniqueNickname.phpView source
<?php
namespace Drupal\social_profile_fields\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Checks that the submitted value is a unique integer.
*
* @Constraint(
* id = "UniqueNickname",
* label = @Translation("Unique Nickname", context = "Validation"),
* type = "string"
* )
*/
class UniqueNickname extends Constraint {
/**
* The message that will be shown if the value is not unique.
*
* @var string
*/
public $notUnique = '%value is already taken.';
}
Classes
Name | Description |
---|---|
UniqueNickname | Checks that the submitted value is a unique integer. |