class SharedEmailUnique in Shared Email 8.2
Checks if a user's email address should and is unique on the site.
Plugin annotation
@Constraint(
id = "SharedEmailUnique",
label = @Translation("Shared email unique", context = "Validation")
)
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint extends \Symfony\Component\Validator\Constraint
- class \Drupal\user\Plugin\Validation\Constraint\UserMailUnique
- class \Drupal\sharedemail\Plugin\Validation\Constraint\SharedEmailUnique
- class \Drupal\user\Plugin\Validation\Constraint\UserMailUnique
Expanded class hierarchy of SharedEmailUnique
File
- src/
Plugin/ Validation/ Constraint/ SharedEmailUnique.php, line 15
Namespace
Drupal\sharedemail\Plugin\Validation\ConstraintView source
class SharedEmailUnique extends UserMailUnique {
/**
* {@inheritdoc}
*/
public function validatedBy() {
return SharedEmailUniqueValidator::class;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SharedEmailUnique:: |
public | function |
Returns the name of the class that validates this constraint. Overrides UniqueFieldConstraint:: |
|
UserMailUnique:: |
public | property |
Overrides UniqueFieldConstraint:: |