You are here

public function FileUploaded::getErrors in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Gets errors accumulated for file.

Overrides AFile::getErrors

File

src/Flmngr/FileUploaderServer/lib/file/FileUploaded.php, line 77

Class

FileUploaded
Uploaded but not commited yet file. Data stucture about file is to be converted to commited file when all validations are passed.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public function getErrors() {
  $errors = (array) parent::getErrors();
  for ($i = 0; $i < count($this->confilictsErrors); $i++) {
    $errors[] = $this->confilictsErrors[$i];
  }
  for ($i = 0; $i < count($this->customErrors); $i++) {
    $errors[] = $this->customErrors[$i];
  }
  return $errors;
}