function FileIsImageConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/file/src/Plugin/Validation/Constraint/FileIsImageConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileIsImageConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileIsImageConstraint.php, line 22
Class
- FileIsImageConstraint
- File is image constraint.
Namespace
Drupal\file\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = 'The image file is invalid or the image type is not allowed. Allowed types: %types', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.