class ConstactStorageMaximumSubmissionsConstraint in Contact Storage 8
Verify that the form has not been submitted more times that the limit.
Plugin annotation
@Constraint(
id = "ConstactStorageMaximumSubmissions",
label = @Translation("Maximum submission limit", context = "Validation"),
)
Hierarchy
- class \Drupal\contact_storage\Plugin\Validation\Constraint\ConstactStorageMaximumSubmissionsConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ConstactStorageMaximumSubmissionsConstraint
File
- src/
Plugin/ Validation/ Constraint/ ConstactStorageMaximumSubmissionsConstraint.php, line 15
Namespace
Drupal\contact_storage\Plugin\Validation\ConstraintView source
class ConstactStorageMaximumSubmissionsConstraint extends Constraint {
/**
* Message shown when the maximum submission limit has been reached.
*
* @var string
*/
public $limitReached = 'You have reached the maximum submission limit of @limit for this form.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstactStorageMaximumSubmissionsConstraint:: |
public | property | Message shown when the maximum submission limit has been reached. |