function FileEncodingConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileEncodingConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileEncodingConstraint::__construct()
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileEncodingConstraint.php, line 20
Class
- FileEncodingConstraint
- Defines an encoding constraint for files.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(public array $encodings, public string $message = "The file is encoded with %detected. It must be encoded with %encoding", ?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.