function FormBuilder::getFileUploadMaxSize

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()
  2. 10 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::getFileUploadMaxSize()
  3. 11.x core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\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.

1 call to FormBuilder::getFileUploadMaxSize()
FormBuilder::buildForm in core/lib/Drupal/Core/Form/FormBuilder.php
Builds and processes a form for a given form ID.

File

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

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

protected function getFileUploadMaxSize() {
    return Environment::getUploadMaxSize();
}

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