blob: ef987985cea930207c2a6271b2edd1c6c48bec55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
namespace Drupal\file\Validation;
use Drupal\file\FileInterface;
use Symfony\Component\Validator\ConstraintViolationListInterface;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Event for file validations.
*/
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,
) {}
}
|