function FileSizeLimitConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileSizeLimitConstraint::__construct()
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileSizeLimitConstraint.php, line 19
Class
- FileSizeLimitConstraint
- File size max constraint.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(public int $fileLimit = 0, public int $userLimit = 0, public string $maxFileSizeMessage = 'The file is %filesize exceeding the maximum file size of %maxsize.', public string $diskQuotaMessage = 'The file is %filesize which would exceed your disk quota of %quota.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct(groups: $groups, payload: $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.