function FileUploadResult::hasViolations
Same name in other branches
- 10 core/modules/file/src/Upload/FileUploadResult.php \Drupal\file\Upload\FileUploadResult::hasViolations()
Returns TRUE if there are constraint violations.
File
-
core/
modules/ file/ src/ Upload/ FileUploadResult.php, line 184
Class
- FileUploadResult
- Value object for a file upload result.
Namespace
Drupal\file\UploadCode
public function hasViolations() : bool {
return $this->violations
->count() > 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.