SharedEmailUnique.php in Shared Email 8.2
File
src/Plugin/Validation/Constraint/SharedEmailUnique.phpView source
<?php
namespace Drupal\sharedemail\Plugin\Validation\Constraint;
use Drupal\user\Plugin\Validation\Constraint\UserMailUnique;
/**
* Checks if a user's email address should and is unique on the site.
*
* @Constraint(
* id = "SharedEmailUnique",
* label = @Translation("Shared email unique", context = "Validation")
* )
*/
class SharedEmailUnique extends UserMailUnique {
/**
* {@inheritdoc}
*/
public function validatedBy() {
return SharedEmailUniqueValidator::class;
}
}
Classes
Name | Description |
---|---|
SharedEmailUnique | Checks if a user's email address should and is unique on the site. |