W3cubDocs

/Drupal 8

protected function FormBuilder::getFileUploadMaxSize

protected FormBuilder::getFileUploadMaxSize()

Wraps file_upload_max_size().

Return value

string A translated string representation of the size of the file size limit based on the PHP upload_max_filesize and post_max_size.

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 1374

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

protected function getFileUploadMaxSize() {
  return file_upload_max_size();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormBuilder.php/function/FormBuilder::getFileUploadMaxSize/8.1.x