function FileExtensionSecureConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraint.php, line 22

Class

FileExtensionSecureConstraint
File extension secure constraint.

Namespace

Drupal\file\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public string $message = 'For security reasons, your upload has been rejected.', ?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.