function FileUploadResult::addViolations
Same name in other branches
- 11.x core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::addViolations()
Adds constraint violations.
Parameters
\Symfony\Component\Validator\ConstraintViolationListInterface $violations: The constraint violations.
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 167
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function addViolations(ConstraintViolationListInterface $violations) : void {
$this->violations
->addAll($violations);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.