function FileValidationEvent::__construct

Same name in other branches
  1. 10 core/modules/file/src/Validation/FileValidationEvent.php \Drupal\file\Validation\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\Validation

Code

public function __construct(FileInterface $file, ConstraintViolationListInterface $violations) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.