You are here

class PushNotificationsTokenUniqueConstraint in Push Notifications 8

Supports validating the token value of a token entity.

Plugin annotation


@Constraint(
  id = "PushNotificationsTokenUnique",
  label = @Translation("Token value in token entity", context = "Validation")
)

Hierarchy

Expanded class hierarchy of PushNotificationsTokenUniqueConstraint

File

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

Namespace

Drupal\push_notifications\Plugin\Validation\Constraint
View source
class PushNotificationsTokenUniqueConstraint extends UniqueFieldConstraint {
  public $message = 'A token with the value %value already exists. Use a unique token.';

}

Members

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