You are here

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

Expanded class hierarchy of SharedEmailUnique

File

src/Plugin/Validation/Constraint/SharedEmailUnique.php, line 15

Namespace

Drupal\sharedemail\Plugin\Validation\Constraint
View source
class SharedEmailUnique extends UserMailUnique {

  /**
   * {@inheritdoc}
   */
  public function validatedBy() {
    return SharedEmailUniqueValidator::class;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SharedEmailUnique::validatedBy public function Returns the name of the class that validates this constraint. Overrides UniqueFieldConstraint::validatedBy
UserMailUnique::$message public property Overrides UniqueFieldConstraint::$message