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
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint extends \Symfony\Component\Validator\Constraint
- class \Drupal\push_notifications\Plugin\Validation\Constraint\PushNotificationsTokenUniqueConstraint
Expanded class hierarchy of PushNotificationsTokenUniqueConstraint
File
- src/
Plugin/ Validation/ Constraint/ PushNotificationsTokenUniqueConstraint.php, line 15
Namespace
Drupal\push_notifications\Plugin\Validation\ConstraintView source
class PushNotificationsTokenUniqueConstraint extends UniqueFieldConstraint {
public $message = 'A token with the value %value already exists. Use a unique token.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PushNotificationsTokenUniqueConstraint:: |
public | property |
Overrides UniqueFieldConstraint:: |
|
UniqueFieldConstraint:: |
public | function | Returns the name of the class that validates this constraint. |