function FileValidationEvent::__construct
Creates a new FileValidationEvent.
Parameters
\Drupal\file\FileInterface $file: The file.
\Symfony\Component\Validator\ConstraintViolationListInterface $violations: The violations.
File
- 
              core/
modules/ file/ src/ Validation/ FileValidationEvent.php, line 22  
Class
- FileValidationEvent
 - Event for file validations.
 
Namespace
Drupal\file\ValidationCode
public function __construct(public readonly FileInterface $file, public readonly ConstraintViolationListInterface $violations) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.