function FormUploadedFile::getErrorMessage
Same name in other branches
- 9 core/modules/file/src/Upload/FormUploadedFile.php \Drupal\file\Upload\FormUploadedFile::getErrorMessage()
Overrides UploadedFileInterface::getErrorMessage
File
-
core/
modules/ file/ src/ Upload/ FormUploadedFile.php, line 50
Class
- FormUploadedFile
- Provides a bridge to Symfony UploadedFile.
Namespace
Drupal\file\UploadCode
public function getErrorMessage() : string {
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\file\\Validation\\UploadedFileValidatorInterface::validate() instead. See https://www.drupal.org/node/3375456', E_USER_DEPRECATED);
return $this->uploadedFile
->getErrorMessage();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.