You are here

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

Expanded class hierarchy of ConstactStorageMaximumSubmissionsConstraint

File

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

Namespace

Drupal\contact_storage\Plugin\Validation\Constraint
View 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

Namesort descending Modifiers Type Description Overrides
ConstactStorageMaximumSubmissionsConstraint::$limitReached public property Message shown when the maximum submission limit has been reached.