
| Current Path : /var/www/html/rocksensor/web/core/modules/file/src/Validation/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/modules/file/src/Validation/FileValidationEvent.php |
<?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,
) {}
}