class FileValidationEvent
Event for file validations.
Hierarchy
- class \Drupal\file\Validation\FileValidationEvent extends \Symfony\Contracts\EventDispatcher\Event
 
Expanded class hierarchy of FileValidationEvent
1 file declares its use of FileValidationEvent
- FileValidationTestSubscriber.php in core/
modules/ file/ tests/ modules/ file_validator_test/ src/ EventSubscriber/ FileValidationTestSubscriber.php  
File
- 
              core/
modules/ file/ src/ Validation/ FileValidationEvent.php, line 12  
Namespace
Drupal\file\ValidationView source
class FileValidationEvent extends Event {
  
  /**
   * Creates a new FileValidationEvent.
   *
   * @param \Drupal\file\FileInterface $file
   *   The file.
   * @param \Symfony\Component\Validator\ConstraintViolationListInterface $violations
   *   The violations.
   */
  public function __construct(public readonly FileInterface $file, public readonly ConstraintViolationListInterface $violations) {
  }
}
Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| FileValidationEvent::__construct | public | function | Creates a new FileValidationEvent. | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.