You are here

ContactEmailUnique.php in RedHen CRM 8

File

modules/redhen_contact/src/Plugin/Validation/Constraint/ContactEmailUnique.php
View source
<?php

namespace Drupal\redhen_contact\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Checks if a Contact's email address is unique on the site.
 *
 * @Constraint(
 *   id = "ContactEmailUnique",
 *   label = @Translation("Contact email unique", context = "Validation")
 * )
 */
class ContactEmailUnique extends Constraint {
  public $message = 'The email address %value is already taken.';

}

Classes

Namesort descending Description
ContactEmailUnique Checks if a Contact's email address is unique on the site.