function FormUploadedFile::getErrorMessage

Same name in other branches
  1. 10 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::getErrorMessage()

Overrides UploadedFileInterface::getErrorMessage

File

core/modules/file/src/Upload/FormUploadedFile.php, line 46

Class

FormUploadedFile
Provides a bridge to Symfony UploadedFile.

Namespace

Drupal\file\Upload

Code

public function getErrorMessage() : string {
    return $this->uploadedFile
        ->getErrorMessage();
}

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