function FileUploadResult::__construct

Same name in other branches
  1. 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::__construct()

Creates a new FileUploadResult.

File

core/modules/file/src/Upload/FileUploadResult.php, line 53

Class

FileUploadResult
Value object for a file upload result.

Namespace

Drupal\file\Upload

Code

public function __construct() {
    $this->violations = new ConstraintViolationList();
}

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